diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-01-27 00:47:14 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-01-27 00:47:14 +0200 |
commit | 582b5ac62e74a553e72151b321804a7b2e5fed6f (patch) | |
tree | 8d775582a473f50ff4fffdca6008fc6bd4b4dac6 /src/tutorial/funcs_new.c | |
parent | 418df3a5dd94d9f02b895f9c161b2435d61e0729 (diff) |
Improve exception usage in PL/Python
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
Diffstat (limited to 'src/tutorial/funcs_new.c')
0 files changed, 0 insertions, 0 deletions