aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-04-24 20:17:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-04-24 20:17:50 +0000
commit5c068038ff69469c7ba7c6b88da27ed734ee4ad1 (patch)
tree576e6a46bb1ef486269994dc1b88b0fcbd34e4ac /src/backend/parser/parse_utilcmd.c
parent830f276b2a685194b6eedea0fc1a4c7bbef882a1 (diff)
downloadpostgresql-5c068038ff69469c7ba7c6b88da27ed734ee4ad1.tar.gz
postgresql-5c068038ff69469c7ba7c6b88da27ed734ee4ad1.zip
Fix ALTER TABLE ADD COLUMN ... PRIMARY KEY so that the new column is correctly
checked to see if it's been initialized to all non-nulls. The implicit NOT NULL constraint was not being checked during the ALTER (in fact, not even if there was an explicit NOT NULL too), because ATExecAddColumn neglected to set the flag needed to make the test happen. This has been broken since the capability was first added, in 8.0. Brendan Jurd, per a report from Kaloyan Iliev.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
0 files changed, 0 insertions, 0 deletions