Skip to content
Snippets Groups Projects
  • Heikki Linnakangas's avatar
    316186f2
    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
    History
    Handle SPIErrors raised directly in PL/Python code.
    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.