]> granicus.if.org Git - postgresql/commit
Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistent constraint
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 5 Jan 2012 17:48:55 +0000 (19:48 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 5 Jan 2012 17:48:55 +0000 (19:48 +0200)
commit104e7dac28c56dcaf9b778dff60a5daefc3a0661
tree5152172e545132186865eeb9ddf5903170011c94
parent2abefd9a92f3c02ad4f6030ac1578bbf314db368
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.
doc/src/sgml/ref/alter_domain.sgml
src/backend/commands/typecmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/include/commands/typecmds.h
src/include/nodes/parsenodes.h
src/test/regress/expected/domain.out
src/test/regress/sql/domain.sql