X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 370B8D1E16B for ; Wed, 12 May 2004 07:50:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 16755-02 for ; Wed, 12 May 2004 07:50:20 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 73ED6D1D74B for ; Wed, 12 May 2004 07:50:16 -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 1BNrJU-0000oK-00; Wed, 12 May 2004 22:50:12 +1200 Message-ID: <40A20162.5010206@opencloud.com> Date: Wed, 12 May 2004 22:50:10 +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: andy@ajsoft.net Cc: pgsql-jdbc@postgresql.org Subject: Re: setAutoCommit(false) References: <20040512094519.11446.qmail@web50807.mail.yahoo.com> In-Reply-To: <20040512094519.11446.qmail@web50807.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/74 X-Sequence-Number: 10084 Andy Jefferson wrote: > Hi, > > I'm a developer on a JDO implementation and we support PostgreSQL as a > database. When obtaining a connection for the DB we do a > setAutoCommit(false). Nothing controversial there. I've used PostgreSQL > 7.3.* with no problems and also 7.4.1-2 with no problems. I do however > have > a user saying that he is using latest PostgreSQL (postgresql 7.4.2 with > pg74.213.jdbc3 is what he told me) and our call to setAutoCommit(false) > apparently returns > > java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer > supported This happens if you use a 7.3-series driver against a 7.4-series database. The most likely cause is that your user is not using the driver they think they are; perhaps there is an older version of the driver earlier in the classpath or in the JVM's extension search path. -O