Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRVP2-0008Lm-SF for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 21:55:48 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRVOv-0007NR-Uj for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 21:55:48 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TRVP1-0001fw-6b for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 23:55:47 +0200 Received: from ppp-88-217-58-199.dynamic.mnet-online.de ([88.217.58.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2012 23:55:47 +0200 Received: from spam_eater by ppp-88-217-58-199.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2012 23:55:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: commit problem Date: Thu, 25 Oct 2012 23:56:18 +0200 Lines: 13 Message-ID: References: <50899D43.80308@hogranch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-88-217-58-199.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <50899D43.80308@hogranch.com> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/122 X-Sequence-Number: 23446 John R Pierce wrote on 25.10.2012 22:12: > my Java developers are telling me, the recent JDBC drivers are > throwing an exception if they inadvertantly issue a commit() on an > autocommit connection. Just for the record: Apparently there is no consensus on this behaviour (even though it's clearly required according to the JDBC specs) MySQL, the jTDS driver for SQL Server and Firebird also throw an exeption in that case. The Microsoft driver, DB2, Derby, h2 and HSQLDB do not throw an exception just like the Oracle driver.