aboutsummaryrefslogtreecommitdiff
path: root/contrib/hstore_plpython/expected/hstore_plpython.out
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hstore_plpython/expected/hstore_plpython.out')
-rw-r--r--contrib/hstore_plpython/expected/hstore_plpython.out11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/hstore_plpython/expected/hstore_plpython.out b/contrib/hstore_plpython/expected/hstore_plpython.out
index bf238701fec..5fb56a2f65d 100644
--- a/contrib/hstore_plpython/expected/hstore_plpython.out
+++ b/contrib/hstore_plpython/expected/hstore_plpython.out
@@ -32,6 +32,17 @@ INFO: [('aa', 'bb'), ('cc', None)]
2
(1 row)
+-- test that a non-mapping result is correctly rejected
+CREATE FUNCTION test1bad() RETURNS hstore
+LANGUAGE plpython3u
+TRANSFORM FOR TYPE hstore
+AS $$
+return "foo"
+$$;
+SELECT test1bad();
+ERROR: not a Python mapping
+CONTEXT: while creating return value
+PL/Python function "test1bad"
-- test hstore[] -> python
CREATE FUNCTION test1arr(val hstore[]) RETURNS int
LANGUAGE plpython3u