aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-05-13 10:32:33 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-05-13 10:32:33 +0200
commite89f4c66182e409b6643b1e8426371011dc25217 (patch)
tree201eb6be77f77f878e50ab16cef29c35f0b8f78f /src/backend/parser/parse_utilcmd.c
parent3ca43dbbb67fbfb96dec8de2e268b96790555148 (diff)
downloadpostgresql-e89f4c66182e409b6643b1e8426371011dc25217.tar.gz
postgresql-e89f4c66182e409b6643b1e8426371011dc25217.zip
Fix test case to do what it intends to
This test case intended to fail because setting a column as generated to the partitioned table while leaving the partition alone is not allowed; but instead failed because of a discrepancy of not-null constraint. Fix this by adding the not-null constraint first, then set the column as generated in a separate ALTER TABLE command, which gets the expected error. Also, because the next test also wants to set the column as not-null, add a BEGIN/ROLLBACK block so that the added not-null is removed. Oversight in 699586315704.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions