summaryrefslogtreecommitdiff
path: root/src/pl/plpython/sql/plpython_setof.sql
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2009-08-13 20:50:05 +0000
committerPeter Eisentraut <peter_e@gmx.net>2009-08-13 20:50:05 +0000
commitcfe380a6dd0dc7335ad83c3e0789357dc554fad3 (patch)
tree68d9018bd80c1a7b411248eccfbc2c6994acfc80 /src/pl/plpython/sql/plpython_setof.sql
parent501255114d0266a599c2b52fdf15fe8cac0a4650 (diff)
Augment test coverage in PL/Python, especially for error conditions.
Diffstat (limited to 'src/pl/plpython/sql/plpython_setof.sql')
-rw-r--r--src/pl/plpython/sql/plpython_setof.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pl/plpython/sql/plpython_setof.sql b/src/pl/plpython/sql/plpython_setof.sql
index 881d90222fe..e036d569f20 100644
--- a/src/pl/plpython/sql/plpython_setof.sql
+++ b/src/pl/plpython/sql/plpython_setof.sql
@@ -2,6 +2,13 @@
-- Test returning SETOF
--
+CREATE FUNCTION test_setof_error() RETURNS SETOF text AS $$
+return 37
+$$ LANGUAGE plpythonu;
+
+SELECT test_setof_error();
+
+
CREATE FUNCTION test_setof_as_list(count integer, content text) RETURNS SETOF text AS $$
return [ content ]*count
$$ LANGUAGE plpythonu;