From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | x asasaxax <xanaruto(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: SQL error |
Date: | 2008-04-19 15:07:23 |
Message-ID: | 20080419150723.GC32096@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, Apr 19, 2008 at 11:47:19AM -0300, x asasaxax wrote:
> 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:
What are you trying to do? Any error automatically rolls back the
transaction, so:
> BEGIN
> insert into temp values(1, 2, 3);
> END;
Should do what you want.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2008-04-19 15:08:06 | Re: SQL error |
Previous Message | Joshua D. Drake | 2008-04-19 15:06:40 | Re: very slow updates in 8.3? |