diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2009-07-20 08:01:07 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2009-07-20 08:01:07 +0000 |
| commit | 5106bdc45040e4aeb033f0c7f9e48fd3c8944258 (patch) | |
| tree | 1188c4a8c1b013719bf9aeee3a88598a40affc94 /src/pl/plpython/expected/plpython_test.out | |
| parent | 888d3335b1bcbf43ea6a76acb010adf65e9d782a (diff) | |
| download | postgresql-5106bdc45040e4aeb033f0c7f9e48fd3c8944258.tar.gz | |
Use errcontext mechanism in PL/Python
Error messages from PL/Python now always mention the function name in the
CONTEXT: field. This also obsoletes the few places that tried to do the
same manually.
Regression test files are updated to work with Python 2.4-2.6. I don't have
access to older versions right now.
Diffstat (limited to 'src/pl/plpython/expected/plpython_test.out')
| -rw-r--r-- | src/pl/plpython/expected/plpython_test.out | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pl/plpython/expected/plpython_test.out b/src/pl/plpython/expected/plpython_test.out index b84660da43..333a9e62d6 100644 --- a/src/pl/plpython/expected/plpython_test.out +++ b/src/pl/plpython/expected/plpython_test.out @@ -38,6 +38,7 @@ SELECT global_test_two(); -- SELECT import_fail(); NOTICE: ('import socket failed -- No module named foosocket',) +CONTEXT: PL/Python function "import_fail" import_fail -------------------- failed as expected @@ -191,6 +192,7 @@ SELECT test_void_func1(), test_void_func1() IS NULL AS "is null"; SELECT test_void_func2(); -- should fail ERROR: PL/Python function with return type "void" did not return None +CONTEXT: PL/Python function "test_void_func2" SELECT test_return_none(), test_return_none() IS NULL AS "is null"; test_return_none | is null ------------------+--------- |
