diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2015-05-18 22:55:14 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2015-05-18 22:55:14 -0400 |
commit | 0779f2ba2db6787259f3ea82f999e08552724218 (patch) | |
tree | 447ed7d5ffcc6bb7fcf9e7c4bea97a922ac3146a /src/backend/commands/functioncmds.c | |
parent | b82a7be603f1811a0a707b53c62de6d5d9431740 (diff) |
Fix parse tree of DROP TRANSFORM and COMMENT ON TRANSFORM
The plain C string language name needs to be wrapped in makeString() so
that the parse tree is copyable. This is detectable by
-DCOPY_PARSE_PLAN_TREES. Add a test case for the COMMENT case.
Also make the quoting in the error messages more consistent.
discovered by Tom Lane
Diffstat (limited to 'src/backend/commands/functioncmds.c')
-rw-r--r-- | src/backend/commands/functioncmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index 9a92fdcff7d..c1426dc9391 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -1867,7 +1867,7 @@ CreateTransform(CreateTransformStmt *stmt) if (!stmt->replace) ereport(ERROR, (errcode(ERRCODE_DUPLICATE_OBJECT), - errmsg("transform for type %s language %s already exists", + errmsg("transform for type %s language \"%s\" already exists", format_type_be(typeid), stmt->lang))); |