ALTER TABLE ADD COLUMN: set atthasdef to FALSE.
authorVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 18 Sep 1997 14:31:38 +0000 (14:31 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 18 Sep 1997 14:31:38 +0000 (14:31 +0000)
src/backend/commands/command.c

index c8e13949af3f3dd3f2b123c25a64549603e78027..d2dbe4b890749d3353919d4e88ead7e8a6d4f5a9 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * 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
  *   The PortalExecutorHeapMemory crap needs to be eliminated
@@ -481,6 +481,7 @@ PerformAddAttribute(char *relationName,
        attribute->attisset = (bool) (form->typtype == 'c');
        attribute->attalign = form->typalign;
        attribute->attnotnull = false;
+       attribute->atthasdef = (colDef->defval != NULL);
 
        heap_insert(attrdesc, attributeTuple);
        if (hasindex)