From cd331e4b845f9206aa89e4f31bb75a040fef87ba Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 3 Apr 2009 16:59:43 +0000 Subject: Defend against possible crash if a plpython function does not specify names for its arguments. Also add a regression test, since someone apparently changed every single plpython test case to use only named parameters; else we'd have noticed this sooner. Euler Taveira de Oliveira, per a report from Alvaro --- src/pl/plpython/sql/plpython_test.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pl/plpython/sql/plpython_test.sql') diff --git a/src/pl/plpython/sql/plpython_test.sql b/src/pl/plpython/sql/plpython_test.sql index f7321ab9e00..633d940e5d4 100644 --- a/src/pl/plpython/sql/plpython_test.sql +++ b/src/pl/plpython/sql/plpython_test.sql @@ -74,7 +74,8 @@ SELECT test_void_func1(), test_void_func1() IS NULL AS "is null"; SELECT test_void_func2(); -- should fail SELECT test_return_none(), test_return_none() IS NULL AS "is null"; --- Test for functions with named parameters +-- Test for functions with named and nameless parameters +SELECT test_param_names0(2,7); SELECT test_param_names1(1,'text'); SELECT test_param_names2(users) from users; SELECT test_param_names3(1); -- cgit v1.2.3