Commit 2de0da35 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

ALTER TABLE ADD COLUMN: set atthasdef to FALSE.

parent 8cb41544
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.16 1997/09/08 21:42:29 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.17 1997/09/18 14:31:38 vadim Exp $
* *
* NOTES * NOTES
* The PortalExecutorHeapMemory crap needs to be eliminated * The PortalExecutorHeapMemory crap needs to be eliminated
...@@ -481,6 +481,7 @@ PerformAddAttribute(char *relationName, ...@@ -481,6 +481,7 @@ PerformAddAttribute(char *relationName,
attribute->attisset = (bool) (form->typtype == 'c'); attribute->attisset = (bool) (form->typtype == 'c');
attribute->attalign = form->typalign; attribute->attalign = form->typalign;
attribute->attnotnull = false; attribute->attnotnull = false;
attribute->atthasdef = (colDef->defval != NULL);
heap_insert(attrdesc, attributeTuple); heap_insert(attrdesc, attributeTuple);
if (hasindex) if (hasindex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment