mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 14:07:30 +08:00
Tweak the error message emitted when a void-returning PL/Python function
does not return None, per suggestion from Tom.
This commit is contained in:
@ -190,8 +190,8 @@ SELECT test_void_func1(), test_void_func1() IS NULL AS "is null";
|
||||
(1 row)
|
||||
|
||||
SELECT test_void_func2(); -- should fail
|
||||
ERROR: unexpected return value from plpython procedure
|
||||
DETAIL: void-returning functions must return "None"
|
||||
ERROR: invalid return value from plpython function
|
||||
DETAIL: Functions returning type "void" must return "None".
|
||||
SELECT test_return_none(), test_return_none() IS NULL AS "is null";
|
||||
test_return_none | is null
|
||||
------------------+---------
|
||||
|
||||
Reference in New Issue
Block a user