From: Annabelle Desbois <a.desbois@regie-france.com>
To: pgsql-general@postgresql.org
Subject: Transactions
Date: Wed, 16 Jul 2003 18:31:22 +0200
Message-ID: <3F157DDA.6050504@regie-france.com> (raw)
Hello,
I've got a problem with transactions with PostgreSQL (7.3.1).
I've Apache 1.3.26 and PHP 4.3.0
When I do a "ROLLBACK" after a "BEGIN", all the next queries are refused
and this error occurs : "pg_exec() [<a
href='http://www.php.net/function.pg-exec'>function.pg-exec</a;]: Query
failed: ERROR: current transaction is aborted, queries ignored until
end of transaction block"
I was thincking that a ROLLBACK automatically stop the current
transaction and the next queries are new transactions. Isn't it right ?
How can we know if we're in a transaction ?
Or is it another problem ?
thx for help
Sincerely,
Annabelle
--
----------------------------------------
Annabelle DESBOIS
SA REGIE FRANCE
Village informatique - BP 3002
17030 La Rochelle CEDEX
tel: 05.46.44.75.76
fax: 05.46.45.34.17
e-mail: a.desbois@regie-france.com
----------------------------------------
--
----------------------------------------
Annabelle DESBOIS
SA REGIE FRANCE
Village informatique - BP 3002
17030 La Rochelle CEDEX
tel: 05.46.44.75.76
fax: 05.46.45.34.17
e-mail: a.desbois@regie-france.com
----------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: a.desbois@regie-france.com
Subject: Re: Transactions
In-Reply-To: <3F157DDA.6050504@regie-france.com>
References: <3F157DDA.6050504@regie-france.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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