pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Annabelle Desbois <a.desbois@regie-france.com>
To: pgsql-general@postgresql.org
Subject: Transactions
Date: Wed, 16 Jul 2003 17:35:29 +0200
Message-ID: <3F1570C1.8090407@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
----------------------------------------




view thread (58+ messages)  latest in thread

Message-ID: <3F1570C1.8090407@regie-france.com>
Permalink:  ../3F1570C1.8090407@regie-france.com/
Also on:    postgresql.org/message-id/3F1570C1.8090407@regie-france.com

 · 

reply

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: <3F1570C1.8090407@regie-france.com>
  References: <3F1570C1.8090407@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