]> granicus.if.org Git - postgresql/commit
PL/Python custom SPI exceptions
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 28 Feb 2011 16:41:10 +0000 (18:41 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 28 Feb 2011 16:41:10 +0000 (18:41 +0200)
commit474a42473adf9b18417242f1fc0691a857ec578b
tree427ce236377cc8c596f258924f6374d990be77e3
parent0ef0b302040284a087c1bc90df5b115f0dea7764
PL/Python custom SPI exceptions

This provides a separate exception class for each error code that the
backend defines, as well as the ability to get the SQLSTATE from the
exception object.

Jan UrbaƄski, reviewed by Steve Singer
12 files changed:
doc/src/sgml/plpython.sgml
src/pl/plpython/.gitignore
src/pl/plpython/Makefile
src/pl/plpython/expected/plpython_error.out
src/pl/plpython/expected/plpython_error_0.out
src/pl/plpython/expected/plpython_subtransaction.out
src/pl/plpython/expected/plpython_subtransaction_0.out
src/pl/plpython/expected/plpython_test.out
src/pl/plpython/generate-spiexceptions.pl [new file with mode: 0644]
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_error.sql
src/tools/msvc/Solution.pm