diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-14 17:55:22 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-14 17:55:22 +0000 |
| commit | 0ff7a2c2ad04404aeb1f45e1ae5d67dc91b575ee (patch) | |
| tree | a7ce4d78d12e02b1852bc75c502ff878d9d50aed /src/pl/plpython/sql/plpython_error.sql | |
| parent | 1ea069b1f61aee5e901886aee8b51051e00aad54 (diff) | |
| download | postgresql-0ff7a2c2ad04404aeb1f45e1ae5d67dc91b575ee.tar.gz | |
Convert the existing regression test scripts for the various optional
PLs to use the standard pg_regress infrastructure. No changes in the
tests themselves. Andrew Dunstan
Diffstat (limited to 'src/pl/plpython/sql/plpython_error.sql')
| -rw-r--r-- | src/pl/plpython/sql/plpython_error.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/pl/plpython/sql/plpython_error.sql b/src/pl/plpython/sql/plpython_error.sql new file mode 100644 index 0000000000..f1939eb8ff --- /dev/null +++ b/src/pl/plpython/sql/plpython_error.sql @@ -0,0 +1,13 @@ + +-- 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'); + +-- Security sandbox tests +SELECT write_file('/tmp/plpython','Only trusted users should be able to do this!'); +SELECT read_file('/tmp/plpython'); |
