Re: off topic rollback

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: <angelo(dot)rigo(at)globo(dot)com>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: off topic rollback
Date: 2002-08-08 19:31:02
Message-ID: Pine.LNX.4.33.0208081329440.25530-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Thu, 8 Aug 2002 angelo(dot)rigo(at)globo(dot)com wrote:

> sorry for this off topic
>
> but someone ask me: if i do a invalid query in the middle of a transaction
> i need to do a rollback .

Basically, in PHP, just about any error will cause the current transaction
to fail and rollback automatically and completely. You don't have to
clean up the mess, as it's already cleaned up for you.

Then you can just try running the transaction again and see if it goes
through.

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Chadwick Rolfs 2002-08-08 19:33:01 Re: PHP + PostgreSQL
Previous Message angelo.rigo 2002-08-08 18:01:15 Re: off topic rollback (forget about it)