Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2749E9FB9B9 for ; Tue, 20 Feb 2007 11:39:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 01147-05 for ; Tue, 20 Feb 2007 11:39:35 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id 6AC599FB95F for ; Tue, 20 Feb 2007 11:39:47 -0400 (AST) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Tue, 20 Feb 2007 15:39:41 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 20 Feb 2007 09:39:41 -0600 Subject: Re: how to continue using a connection after an error with autocommit=false From: Scott Marlowe To: Altaf Malik Cc: James Im , pgsql-jdbc@postgresql.org In-Reply-To: <305445.70270.qm@web39109.mail.mud.yahoo.com> References: <305445.70270.qm@web39109.mail.mud.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1171985981.25338.44.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 20 Feb 2007 09:39:41 -0600 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.031 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_PASS, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200702/109 X-Sequence-Number: 16665 On Tue, 2007-02-20 at 04:53, Altaf Malik wrote: > You can either commit or rollback the transaction when you encounter > an SQL error. This will alow the next statements to execute > successfully. You can't commit after an error in PostgreSQL unless you've rolled back to a savepoint from before the error.