mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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
This commit is contained in:
@ -26,6 +26,8 @@ CREATE OR REPLACE TRANSFORM FOR hstore LANGUAGE plperl (FROM SQL WITH FUNCTION h
|
||||
CREATE OR REPLACE TRANSFORM FOR hstore LANGUAGE plperl (FROM SQL WITH FUNCTION hstore_to_plperl(internal)); -- ok
|
||||
CREATE OR REPLACE TRANSFORM FOR hstore LANGUAGE plperl (TO SQL WITH FUNCTION plperl_to_hstore(internal)); -- ok
|
||||
|
||||
COMMENT ON TRANSFORM FOR hstore LANGUAGE plperl IS 'test';
|
||||
|
||||
DROP TRANSFORM IF EXISTS FOR fake_type LANGUAGE plperl;
|
||||
DROP TRANSFORM IF EXISTS FOR hstore LANGUAGE fake_lang;
|
||||
DROP TRANSFORM FOR foo LANGUAGE plperl;
|
||||
|
Reference in New Issue
Block a user