aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/sql/plpython_function.sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-05-03 02:47:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-05-03 02:47:48 +0000
commitbdc7dd6799ce6effc48de58ca9ecbec82461d8b6 (patch)
tree940bcb9df06f6f6d81d54368968c7799ab3c59fc /src/pl/plpython/sql/plpython_function.sql
parentd61eecb5a17d1b9373ca75fb4d6de4e35ba3f640 (diff)
downloadpostgresql-bdc7dd6799ce6effc48de58ca9ecbec82461d8b6.tar.gz
postgresql-bdc7dd6799ce6effc48de58ca9ecbec82461d8b6.zip
Fix plpython to not get totally confused by OUT arguments. (It still doesn't
support multiple OUT arguments, though.) Hannu Krosing
Diffstat (limited to 'src/pl/plpython/sql/plpython_function.sql')
-rw-r--r--src/pl/plpython/sql/plpython_function.sql13
1 files changed, 13 insertions, 0 deletions
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;