Ticket #198: aa_test.sql
| File aa_test.sql, 417 bytes (added by pete@…, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* |
| 2 | Testing function creation through Phing PDO task |
| 3 | */ |
| 4 | |
| 5 | SET client_encoding = 'UTF8'; |
| 6 | SET client_min_messages = warning; |
| 7 | SET search_path = public, pg_catalog; |
| 8 | |
| 9 | CREATE FUNCTION phingPDOtest() RETURNS "trigger" |
| 10 | AS $_X$ |
| 11 | if (1) |
| 12 | { |
| 13 | # All is well - just continue |
| 14 | return; |
| 15 | } |
| 16 | else |
| 17 | { |
| 18 | # Not good - this is probably a fatal error! |
| 19 | elog(ERROR,"True is not true"); |
| 20 | return "SKIP"; |
| 21 | } |
| 22 | $_X$ |
| 23 | LANGUAGE plperl; |
