pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedoff topic rollback
2+ messages / 2 participants
[nested] [flat]
* off topic rollback
@ 2002-08-08 17:30 angelo.rigo@globo.com
0 siblings, 1 reply; 2+ messages in thread
From: angelo.rigo@globo.com @ 2002-08-08 17:30 UTC (permalink / raw)
To: pgsql-php
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 .
________________________________________
A busca mais veloz e precisa da internet. Acesse agora: http://www.zoom.com.br.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: off topic rollback
@ 2002-08-08 19:31 scott.marlowe <scott.marlowe@ihs.com>
parent: angelo.rigo@globo.com
0 siblings, 0 replies; 2+ messages in thread
From: scott.marlowe @ 2002-08-08 19:31 UTC (permalink / raw)
To: angelo.rigo@globo.com; +Cc: pgsql-php
On Thu, 8 Aug 2002 angelo.rigo@globo.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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-08-08 19:31 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-08 17:30 off topic rollback angelo.rigo@globo.com
2002-08-08 19:31 ` scott.marlowe <scott.marlowe@ihs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox