]> granicus.if.org Git - postgresql/commit
PL/Python: Report argument parsing errors using exceptions
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 3 Jul 2016 02:53:14 +0000 (22:53 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 3 Jul 2016 02:53:14 +0000 (22:53 -0400)
commit3a4a33ad49e7887b104a29323e4ea625d164a139
tree493b49088ab69e8b19e1058c4d5cd8fb7a9c8231
parent420c1661630c96ad10f58ca967d5f561bb404cf9
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.
src/pl/plpython/expected/plpython_ereport.out
src/pl/plpython/plpy_plpymodule.c