Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2de0da3

Browse files
committed
ALTER TABLE ADD COLUMN: set atthasdef to FALSE.
1 parent8cb4154 commit2de0da3

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)

[8]ページ先頭

©2009-2025 Movatter.jp