SQL error

From: "x asasaxax" <xanaruto(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: SQL error
Date: 2008-04-19 14:47:19
Message-ID: 91495cb0804190747l3e29c7e8i169c90a44c27d12e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HI everyone,

I´m trying to capture all the possible errors that a statement can have.
And, if there´s any error i will do a rollback; What i´m trying to do its:
BEGIN
insert into temp values(1, 2, 3);
IF ANY_ERROR_OCCURED THEN
ROLLBACK;
RETURN FALSE;
END IF;
END;

Did anyone knows how can i do that?

Thanks a lot!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-04-19 14:52:07 Initial ugly reverse-translator
Previous Message Richard Broersma 2008-04-19 13:21:06 Re: very slow updates in 8.3?