aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/copyfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-01-05 19:48:55 +0200
committerPeter Eisentraut <peter_e@gmx.net>2012-01-05 19:48:55 +0200
commit104e7dac28c56dcaf9b778dff60a5daefc3a0661 (patch)
tree5152172e545132186865eeb9ddf5903170011c94 /src/backend/nodes/copyfuncs.c
parent2abefd9a92f3c02ad4f6030ac1578bbf314db368 (diff)
downloadpostgresql-104e7dac28c56dcaf9b778dff60a5daefc3a0661.tar.gz
postgresql-104e7dac28c56dcaf9b778dff60a5daefc3a0661.zip
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.
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r--src/backend/nodes/copyfuncs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index c9d3e2ee517..756e3a689b8 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -2568,6 +2568,7 @@ _copyAlterDomainStmt(const AlterDomainStmt *from)
COPY_STRING_FIELD(name);
COPY_NODE_FIELD(def);
COPY_SCALAR_FIELD(behavior);
+ COPY_SCALAR_FIELD(missing_ok);
return newnode;
}