]> granicus.if.org Git - postgresql/commit
Fix parse tree of DROP TRANSFORM and COMMENT ON TRANSFORM
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 19 May 2015 02:55:14 +0000 (22:55 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 19 May 2015 02:55:14 +0000 (22:55 -0400)
commit0779f2ba2db6787259f3ea82f999e08552724218
tree447ed7d5ffcc6bb7fcf9e7c4bea97a922ac3146a
parentb82a7be603f1811a0a707b53c62de6d5d9431740
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
contrib/hstore_plperl/expected/create_transform.out
contrib/hstore_plperl/sql/create_transform.sql
src/backend/catalog/objectaddress.c
src/backend/commands/dropcmds.c
src/backend/commands/functioncmds.c
src/backend/parser/gram.y