mirror of
https://github.com/postgres/postgres.git
synced 2025-12-13 14:22:43 +03:00
Augment test coverage in PL/Python, especially for error conditions.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user