X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4D4EC5E46E1 for ; Mon, 30 Aug 2004 08:31:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52034-05 for ; Mon, 30 Aug 2004 11:31:45 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 364145E3F15 for ; Mon, 30 Aug 2004 08:31:48 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1C1kO0-00056I-00; Mon, 30 Aug 2004 23:31:44 +1200 Message-ID: <4133101E.1090401@opencloud.com> Date: Mon, 30 Aug 2004 23:31:42 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Antony Paul Cc: pgsql-jdbc Subject: Re: AutoCommit and SQLException References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/162 X-Sequence-Number: 10884 Antony Paul wrote: > Hi all, > What happens to transaction when an SQL exception is thrown while it is > in a transaction. Does the connection automatically rollbacks the > transactions or we have to roll back it ? You have to roll it back yourself. PostgreSQL will generate errors on subsequent queries in a transaction after an error (until you roll it back), but that's not necessarily true of other DBs. -O