postgresql/src/pl/plpython/expected/plpython_error.out

22 lines
761 B
Text
Raw Normal View History

-- test error handling, i forgot to restore Warn_restart in
-- the trigger handler once. the errors and subsequent core dump were
-- interesting.
2001-05-09 15:54:38 -04:00
SELECT invalid_type_uncaught('rick');
WARNING: plpython: in function invalid_type_uncaught:
2003-07-25 20:02:02 -04:00
DETAIL: plpy.SPIError: Unknown error in PLy_spi_prepare
ERROR: type "test" does not exist
2001-05-09 15:54:38 -04:00
SELECT invalid_type_caught('rick');
WARNING: plpython: in function invalid_type_caught:
2003-07-25 20:02:02 -04:00
DETAIL: plpy.SPIError: Unknown error in PLy_spi_prepare
ERROR: type "test" does not exist
2001-05-09 15:54:38 -04:00
SELECT invalid_type_reraised('rick');
WARNING: plpython: in function invalid_type_reraised:
2003-07-25 20:02:02 -04:00
DETAIL: plpy.SPIError: Unknown error in PLy_spi_prepare
ERROR: type "test" does not exist
2001-05-09 15:54:38 -04:00
SELECT valid_type('rick');
valid_type
------------
(1 row)