From cfe380a6dd0dc7335ad83c3e0789357dc554fad3 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Thu, 13 Aug 2009 20:50:05 +0000
Subject: Augment test coverage in PL/Python, especially for error conditions.

---
 src/pl/plpython/sql/plpython_setof.sql | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/pl/plpython/sql/plpython_setof.sql')

diff --git a/src/pl/plpython/sql/plpython_setof.sql b/src/pl/plpython/sql/plpython_setof.sql
index 881d90222f..e036d569f2 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;
-- 
cgit v1.2.1

