OSDN Git Service

Remove transformAlterTableStmt's kluge to replace ColumnDef.is_not_null
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Apr 2008 20:46:49 +0000 (20:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 24 Apr 2008 20:46:49 +0000 (20:46 +0000)
commit46e9709f48687af327a35f9129c971a148a73396
tree5b1eeb7370c00017367fd9474e5867e618e2315a
parentbb908d98798c79a915facee94117865d72302ea6
Remove transformAlterTableStmt's kluge to replace ColumnDef.is_not_null
flags by separate AT_SetNotNull subcommands.  That was always ugly and
inefficient, and it's now clear that it was merely a partial workaround
for the bug just identified in ATExecAddColumn.  This is just code
beautification not a bug fix, so no back-patch.

Brendan Jurd, with some trivial additional cleanup by me.
src/backend/parser/parse_utilcmd.c