• Heikki Linnakangas's avatar
    Handle SPIErrors raised directly in PL/Python code. · 316186f2
    Heikki Linnakangas authored
    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.
    316186f2
plpython_error.sql 6.98 KB