Preserve SQLSTATE when an SPI error is propagated through PL/python
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 24 Nov 2011 15:18:43 +0000 (17:18 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 24 Nov 2011 15:23:59 +0000 (17:23 +0200)
commitd2192a108c7b118d430f03cff0ff84861d5026e0
tree7724d8a77fddce1b1e8ae8a12ead793046cbff0f
parent94bdb198813b079467d7ed07c6f72ac896da7161
Preserve SQLSTATE when an SPI error is propagated through PL/python
exception handler. This was a regression in 9.1, when the capability
to catch specific SPI errors was added, so backpatch to 9.1.

Mika Eloranta, with some editing by Jan UrbaƄski.
src/pl/plpython/expected/plpython_error.out
src/pl/plpython/expected/plpython_error_0.out
src/pl/plpython/plpython.c
src/pl/plpython/sql/plpython_error.sql