X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8D92F9DCA06 for ; Sat, 4 Feb 2006 15:29:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27372-01 for ; Sat, 4 Feb 2006 15:29:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E55949DC98C for ; Sat, 4 Feb 2006 15:29:27 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k14JTNX7020786; Sat, 4 Feb 2006 14:29:23 -0500 (EST) To: Carlos Correia cc: pgsql-jdbc@postgresql.org Subject: Re: SET AUTOCOMMIT TO OFF no longer supported In-reply-to: <43E4FD44.7060906@m16e.com> References: <43E4F5A6.2090801@m16e.com> <20615.1139079939@sss.pgh.pa.us> <43E4FD44.7060906@m16e.com> Comments: In-reply-to Carlos Correia message dated "Sat, 04 Feb 2006 19:15:16 +0000" Date: Sat, 04 Feb 2006 14:29:23 -0500 Message-ID: <20785.1139081363@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.104 required=5 tests=[AWL=0.104] X-Spam-Score: 0.104 X-Spam-Level: X-Archive-Number: 200602/26 X-Sequence-Number: 14623 Carlos Correia writes: > Tom Lane escreveu: > | I think you need a newer JDBC driver. (If the app itself, rather than > | the driver, is trying to issue this command then the app is so broken > | it doesn't deserve to live.) > newer then this: > http://jdbc.postgresql.org/download/postgresql-8.1-404.jdbc3.jar? No, that driver is plenty new enough to know not to do this. It's the app that's broken, then --- it has no business messing with SET AUTOCOMMIT rather than using the JDBC-spec methods to control transaction boundaries. > | It might have worked with 7.3, but 7.4 would give this same error message. > Well, as I said before, it's been working perfectly from several years > with 7.4. Interesting. Maybe the app is coded to use SET AUTOCOMMIT only with 7.3 (which is the *only* PG release series that ever had this command), but its version test is broken so that it tries to use it with 8.*? regards, tom lane