mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Allow IF NOT EXISTS when add a new enum label.
If the label is already in the enum the statement becomes a no-op. This will reduce the pain that comes from our not allowing this operation inside a transaction block. Andrew Dunstan, reviewed by Tom Lane and Magnus Hagander.
This commit is contained in:
@ -3055,6 +3055,7 @@ _copyAlterEnumStmt(const AlterEnumStmt *from)
|
||||
COPY_STRING_FIELD(newVal);
|
||||
COPY_STRING_FIELD(newValNeighbor);
|
||||
COPY_SCALAR_FIELD(newValIsAfter);
|
||||
COPY_SCALAR_FIELD(skipIfExists);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user