Re: global variable problem

Поиск
Список
Период
Сортировка
От Chris
Тема Re: global variable problem
Дата
Msg-id 5.1.0.14.0.20020424084224.00aa23a0@cooee.cybersydney.com.au
обсуждение исходный текст
Ответ на Re: global variable problem  ("Papp, Gyozo" <pgerzson@freestart.hu>)
Список 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 по дате отправления:

Предыдущее
От: "Jules Alberts"
Дата:
Сообщение: Re: global variable problem
Следующее
От: "Papp, Gyozo"
Дата:
Сообщение: Re: global variable problem