mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Turn constraints off for sequences & views
elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet"); Call ExecConstraints in CopyFrom
This commit is contained in:
@ -97,6 +97,8 @@ DefineSequence (CreateSeqStmt *seq)
|
||||
typnam->arrayBounds = NULL;
|
||||
coldef = makeNode(ColumnDef);
|
||||
coldef->typename = typnam;
|
||||
coldef->defval = NULL;
|
||||
coldef->is_not_null = false;
|
||||
null[i-1] = ' ';
|
||||
|
||||
switch (i)
|
||||
@ -149,6 +151,7 @@ DefineSequence (CreateSeqStmt *seq)
|
||||
stmt->archiveLoc = -1; /* default */
|
||||
stmt->archiveType = ARCH_NONE;
|
||||
stmt->inhRelnames = NIL;
|
||||
stmt->constraints = NIL;
|
||||
|
||||
ItsSequenceCreation = true; /* hack */
|
||||
|
||||
|
Reference in New Issue
Block a user