mirror of https://github.com/postgres/postgres
Commitpull/14/headb488c580ae, which added the DDL command collection feature, neglected to update the code that commitcac7658205had previously added two weeks earlier for the TRANSFORM feature. Reported by Michael Paquier.
parent
4028222468
commit
7d60b2af34
@ -0,0 +1,13 @@ |
||||
-- |
||||
-- CREATE_TRANSFORM |
||||
-- |
||||
-- Create a dummy transform |
||||
-- The function FROM SQL should have internal as single argument as well |
||||
-- as return type. The function TO SQL should have as single argument |
||||
-- internal and as return argument the datatype of the transform done. |
||||
-- pl/plpgsql does not authorize the use of internal as data type. |
||||
CREATE TRANSFORM FOR int LANGUAGE SQL ( |
||||
FROM SQL WITH FUNCTION varchar_transform(internal), |
||||
TO SQL WITH FUNCTION int4recv(internal)); |
||||
NOTICE: DDL test: type simple, tag CREATE TRANSFORM |
||||
DROP TRANSFORM FOR int LANGUAGE SQL; |
||||
@ -0,0 +1,14 @@ |
||||
-- |
||||
-- CREATE_TRANSFORM |
||||
-- |
||||
|
||||
-- Create a dummy transform |
||||
-- The function FROM SQL should have internal as single argument as well |
||||
-- as return type. The function TO SQL should have as single argument |
||||
-- internal and as return argument the datatype of the transform done. |
||||
-- pl/plpgsql does not authorize the use of internal as data type. |
||||
CREATE TRANSFORM FOR int LANGUAGE SQL ( |
||||
FROM SQL WITH FUNCTION varchar_transform(internal), |
||||
TO SQL WITH FUNCTION int4recv(internal)); |
||||
|
||||
DROP TRANSFORM FOR int LANGUAGE SQL; |
||||
Loading…
Reference in new issue