mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +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:
@@ -1439,6 +1439,7 @@ _equalAlterEnumStmt(const AlterEnumStmt *a, const AlterEnumStmt *b)
|
||||
COMPARE_STRING_FIELD(newVal);
|
||||
COMPARE_STRING_FIELD(newValNeighbor);
|
||||
COMPARE_SCALAR_FIELD(newValIsAfter);
|
||||
COMPARE_SCALAR_FIELD(skipIfExists);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user