Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2de0da3

Browse files
committed
ALTER TABLE ADD COLUMN: set atthasdef to FALSE.
1 parent 8cb4154 commit 2de0da3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/commands/command.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.16 1997/09/08 21:42:29 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.17 1997/09/18 14:31:38 vadim Exp $
1111
*
1212
* NOTES
1313
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -481,6 +481,7 @@ PerformAddAttribute(char *relationName,
481481
attribute->attisset = (bool) (form->typtype == 'c');
482482
attribute->attalign = form->typalign;
483483
attribute->attnotnull = false;
484+
attribute->atthasdef = (colDef->defval != NULL);
484485

485486
heap_insert(attrdesc, attributeTuple);
486487
if (hasindex)

0 commit comments

Comments
 (0)