mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistent constraint
ALTER DOMAIN / DROP CONSTRAINT on a nonexistent constraint name did not report any error. Now it reports an error. The IF EXISTS option was added to get the usual behavior of ignoring nonexistent objects to drop.
This commit is contained in:
@@ -33,7 +33,7 @@ extern void AlterDomainNotNull(List *names, bool notNull);
|
||||
extern void AlterDomainAddConstraint(List *names, Node *constr);
|
||||
extern void AlterDomainValidateConstraint(List *names, char *constrName);
|
||||
extern void AlterDomainDropConstraint(List *names, const char *constrName,
|
||||
DropBehavior behavior);
|
||||
DropBehavior behavior, bool missing_ok);
|
||||
|
||||
extern List *GetDomainConstraints(Oid typeOid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user