pgsql: PL/Python: Report argument parsing errors using exceptions

Started by Peter Eisentrautabout 10 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

PL/Python: Report argument parsing errors using exceptions

Instead of calling PLy_elog() for reporting Python argument parsing
errors, generate appropriate exceptions. This matches the existing plpy
functions and is more consistent with the behavior of the Python
argument parsing routines.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3a4a33ad49e7887b104a29323e4ea625d164a139

Modified Files
--------------
src/pl/plpython/expected/plpython_ereport.out | 28 +++++++++++++++++++--------
src/pl/plpython/plpy_plpymodule.c | 23 +++++++++++++++++-----
2 files changed, 38 insertions(+), 13 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers