| | |
| | | ERROR: spiexceptions.UndefinedFunction: function test5(unknown) does not exist |
| | | LINE 1: SELECT test5('foo') |
| | | ^ |
| | | HINT: No function matches the given name and argument types. You might need to add explicit type casts. |
| | | DETAIL: There is no function of that name. |
| | | QUERY: SELECT test5('foo') |
| | | CONTEXT: Traceback (most recent call last): |
| | | PL/Python function "exception_index_invalid_nested", line 1, in <module> |
| | |
| | | DETAIL: spiexceptions.InvalidDatetimeFormat: invalid value "xy" for "DD" |
| | | CONTEXT: Traceback (most recent call last): |
| | | PL/Python function "python_error_detail" |
| | | /* test the presently-unsupported case of polymorphic functions |
| | | */ |
| | | CREATE FUNCTION python_poly_ret(x anyelement) RETURNS anyelement AS $$ |
| | | return x |
| | | $$ LANGUAGE plpython3u; |
| | | ERROR: PL/Python functions cannot return type anyelement |
| | | CREATE FUNCTION python_poly_arg(x anyelement) RETURNS int AS $$ |
| | | return x |
| | | $$ LANGUAGE plpython3u; |
| | | ERROR: PL/Python functions cannot accept type anyelement |