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 19FB0CC6D8 for ; Wed, 16 Jul 2003 16:25:00 +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 04298-04 for ; Wed, 16 Jul 2003 16:25:26 +0000 (GMT) Received: from mail.regie-france.com (onyx.regie-france.com [195.101.193.81]) by svr1.postgresql.org (Postfix) with ESMTP id 5D849CC6D2 for ; Wed, 16 Jul 2003 13:24:58 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.regie-france.com (Postfix) with ESMTP id 4270F162D8A for ; Wed, 16 Jul 2003 18:13:07 +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 09502-08 for ; Wed, 16 Jul 2003 18:13:06 +0200 (CEST) Received: from regie-france.com (adesbois [10.100.1.9]) by mail.regie-france.com (Postfix) with ESMTP id B8327162C3B for ; Wed, 16 Jul 2003 18:13:06 +0200 (CEST) Message-ID: <3F157DDA.6050504@regie-france.com> Date: Wed, 16 Jul 2003 18:31:22 +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/635 X-Sequence-Number: 45488 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 ---------------------------------------- -- ---------------------------------------- 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 ----------------------------------------