From 0bef7ba549977154572bdbf5682a32a07839fd82 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 9 May 2001 19:54:38 +0000 Subject: Add plpython code. --- src/pl/plpython/plpython_error.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/pl/plpython/plpython_error.sql (limited to 'src/pl/plpython/plpython_error.sql') diff --git a/src/pl/plpython/plpython_error.sql b/src/pl/plpython/plpython_error.sql new file mode 100644 index 0000000000..2f0486fed9 --- /dev/null +++ b/src/pl/plpython/plpython_error.sql @@ -0,0 +1,9 @@ + +-- test error handling, i forgot to restore Warn_restart in +-- the trigger handler once. the errors and subsequent core dump were +-- interesting. + +SELECT invalid_type_uncaught('rick'); +SELECT invalid_type_caught('rick'); +SELECT invalid_type_reraised('rick'); +SELECT valid_type('rick'); -- cgit v1.2.1