• Peter Eisentraut's avatar
    Improve exception usage in PL/Python · 582b5ac6
    Peter Eisentraut authored
    Use the built-in TypeError, not SPIError, for errors having to do with
    argument counts or types.  Use SPIError, not simply plpy.Error, for
    errors in PLy_spi_execute_plan.  Finally, do not set a Python
    exception if PyArg_ParseTuple failed, as it already sets the correct
    exception.
    
    Jan Urbański
    582b5ac6
plpython.c 91.2 KB