Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
src/pl/plpython/expected/plpython_error.out
@@ -63,7 +63,7 @@
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>
@@ -458,3 +458,13 @@
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