From: | Chris <csmith(at)squiz(dot)net> |
---|---|
To: | "Papp, Gyozo" <pgerzson(at)freestart(dot)hu>, <jules(dot)alberts(at)arbodienst-limburg(dot)nl>, <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: global variable problem |
Date: | 2002-04-23 22:46:43 |
Message-ID: | 5.1.0.14.0.20020424084224.00aa23a0@cooee.cybersydney.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Hi,
>| > doing a roolback in this connection, doest it will roolback all scripts?
>
>No, at the end of the script PHP sends a ROLLBACK automatically to
>postgres. So it can rollback the queries in the actual request (page) only.
I hope not!
If you begin a transaction in your PHP code explicitly, then it's the same
as manually running the commands from the psql monitor, so you need to
explicitly say "COMMIT" or "ROLLBACK".
Remember that postgres automatically wraps everything in transactions, so
unless you explicitly start one, you can't do a rollback from a previous
update / insert query (because this is a different transaction).
-----------------
Chris Smith
http://www.squiz.net/
From | Date | Subject | |
---|---|---|---|
Next Message | Papp, Gyozo | 2002-04-23 23:05:06 | Re: global variable problem |
Previous Message | Jules Alberts | 2002-04-23 13:43:08 | Re: global variable problem |