X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 56698CC693 for ; Wed, 16 Jul 2003 15:29:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 89263-09 for ; Wed, 16 Jul 2003 15:29:34 +0000 (GMT) Received: from mail.regie-france.com (onyx.regie-france.com [195.101.193.81]) by svr1.postgresql.org (Postfix) with ESMTP id BBDBBCC6A4 for ; Wed, 16 Jul 2003 12:29:05 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.regie-france.com (Postfix) with ESMTP id 35E00162D8A for ; Wed, 16 Jul 2003 17:17:14 +0200 (CEST) Received: from mail.regie-france.com ([127.0.0.1]) by localhost (onyx.intra.regie-france.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07886-02 for ; Wed, 16 Jul 2003 17:17:13 +0200 (CEST) Received: from regie-france.com (adesbois [10.100.1.9]) by mail.regie-france.com (Postfix) with ESMTP id B0FDA162C3B for ; Wed, 16 Jul 2003 17:17:13 +0200 (CEST) Message-ID: <3F1570C1.8090407@regie-france.com> Date: Wed, 16 Jul 2003 17:35:29 +0200 From: Annabelle Desbois User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: fr, en-us, en MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Transactions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at regie-france.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/890 X-Sequence-Number: 45743 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() [function.pg-exec]: 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 ----------------------------------------