mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-11 15:47:35 +08:00
PL/Python custom SPI exceptions
This provides a separate exception class for each error code that the backend defines, as well as the ability to get the SQLSTATE from the exception object. Jan Urbański, reviewed by Steve Singer
This commit is contained in:
@ -43,9 +43,9 @@ contents.sort()
|
||||
return ", ".join(contents)
|
||||
$$ LANGUAGE plpythonu;
|
||||
select module_contents();
|
||||
module_contents
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Error, Fatal, SPIError, debug, error, execute, fatal, info, log, notice, prepare, quote_ident, quote_literal, quote_nullable, subtransaction, warning
|
||||
module_contents
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Error, Fatal, SPIError, debug, error, execute, fatal, info, log, notice, prepare, quote_ident, quote_literal, quote_nullable, spiexceptions, subtransaction, warning
|
||||
(1 row)
|
||||
|
||||
CREATE FUNCTION elog_test() RETURNS void
|
||||
|
||||
Reference in New Issue
Block a user