Re: global variable problem - Mailing list pgsql-php

From Chris
Subject Re: global variable problem
Date
Msg-id 5.1.0.14.0.20020424084224.00aa23a0@cooee.cybersydney.com.au
Whole thread Raw
In response to Re: global variable problem  ("Papp, Gyozo" <pgerzson@freestart.hu>)
List 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/


pgsql-php by date:

Previous
From: "Jules Alberts"
Date:
Subject: Re: global variable problem
Next
From: "Papp, Gyozo"
Date:
Subject: Re: global variable problem