--On Freitag, Oktober 27, 2006 11:00:07 +0530 Gurjeet Singh
<[EMAIL PROTECTED]> wrote:
I was thinking of recommending this to someone, but wanted to try it on
my own first; good thing that I did. I think it is broken as of now.
I assume that the error thrown for 'select 1', inside a transaction, with
'on_error_rollback on', is not supposed to raise it's head !!!
Or am I missing something?
[...]
You have to specify the parameter in upper case:
[EMAIL PROTECTED]:bernd #= BEGIN;
BEGIN
[EMAIL PROTECTED]:bernd #*= \set ON_ERROR_ROLLBACK
[EMAIL PROTECTED]:bernd #*= SELECT a;
ERROR: column "a" does not exist
LINE 1: SELECT a;
^
[EMAIL PROTECTED]:bernd #*= SELECT 1;
?column?
----------
1
(1 row)
--
Thanks
Bernd
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq