diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-01-28 09:40:20 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-01-28 09:46:23 +0200 |
commit | 316186f2893d37ecd8e32392ee7c910cca9b93eb (patch) | |
tree | dcaf8ad59959e54e4049d517eba1d09c51db9fda /src/backend/access/transam/xlog.c | |
parent | 96bb29dc444f2b7fc8fbddae4fd7fe25d6544665 (diff) | |
download | postgresql-316186f2893d37ecd8e32392ee7c910cca9b93eb.tar.gz postgresql-316186f2893d37ecd8e32392ee7c910cca9b93eb.zip |
Handle SPIErrors raised directly in PL/Python code.
If a PL/Python function raises an SPIError (or one if its subclasses)
directly with python's raise statement, treat it the same as an SPIError
generated internally. In particular, if the user sets the sqlstate
attribute, preserve that.
Oskari Saarenmaa and Jan UrbaĆski, reviewed by Karl O. Pinc.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions