Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 7A070632898 for ; Wed, 1 Sep 2010 05:27:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32712-04 for ; Wed, 1 Sep 2010 08:26:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id BEEC462DBD9 for ; Wed, 1 Sep 2010 05:26:52 -0300 (ADT) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Oqied-0005rm-8d; Wed, 01 Sep 2010 20:26:47 +1200 Message-ID: <4C7E0E41.3080302@opencloud.com> Date: Wed, 01 Sep 2010 20:26:41 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Fabien JALABERT CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC: "transaction aborted" References: <54191bbe-6765-4b1c-bbfd-8fd2d9e6024f@f25g2000yqc.googlegroups.com> <4C7DB511.9080807@postnewspapers.com.au> <4C7E036B.6080407@laposte.net> In-Reply-To: <4C7E036B.6080407@laposte.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201009/2 X-Sequence-Number: 20872 Fabien JALABERT wrote: > Hello, if I turn on autocommit, will I be able to process transactions > with begin/commit/rollback as before ? "Maybe" - but you shouldn't be doing that anyway. The JDBC model expects that to do explicit transaction demarcation, you turn off autocommit and use methods on Connection to do commit/rollback. You shouldn't be issuing queries with explicit BEGIN/COMMIT/ROLLBACK. see e.g. http://download.oracle.com/javase/1.3/docs/guide/jdbc/getstart/connection.html#1004665 -O