From bdc7dd6799ce6effc48de58ca9ecbec82461d8b6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 3 May 2008 02:47:48 +0000 Subject: Fix plpython to not get totally confused by OUT arguments. (It still doesn't support multiple OUT arguments, though.) Hannu Krosing --- src/pl/plpython/sql/plpython_function.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/pl/plpython/sql/plpython_function.sql') diff --git a/src/pl/plpython/sql/plpython_function.sql b/src/pl/plpython/sql/plpython_function.sql index 224d5196a3c..cf01e8e0cdc 100644 --- a/src/pl/plpython/sql/plpython_function.sql +++ b/src/pl/plpython/sql/plpython_function.sql @@ -480,3 +480,16 @@ elif typ == 'obj': return type_record $$ LANGUAGE plpythonu; +CREATE FUNCTION test_in_out_params(first in text, second out text) AS $$ +return first + '_in_to_out'; +$$ LANGUAGE plpythonu; + +-- this doesn't work yet :-( +CREATE FUNCTION test_in_out_params_multi(first in text, + second out text, third out text) AS $$ +return first + '_record_in_to_out'; +$$ LANGUAGE plpythonu; + +CREATE FUNCTION test_inout_params(first inout text) AS $$ +return first + '_inout'; +$$ LANGUAGE plpythonu; -- cgit v1.2.3