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 CD9955294E for ; Tue, 5 Apr 2005 00:59:50 +0100 (BST) 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 17130-01 for ; Mon, 4 Apr 2005 23:59:41 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 8014753592 for ; Tue, 5 Apr 2005 00:59:39 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DIbTp-0004lW-0T; Tue, 05 Apr 2005 11:59:41 +1200 Message-ID: <4251D4EC.9070204@opencloud.com> Date: Tue, 05 Apr 2005 11:59:40 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Marchant Cc: pgsql-jdbc@postgresql.org Subject: Re: getTransactionIsolation() causes SQLException - unrecognized References: <10c02a2505040416043f1e2ab1@mail.gmail.com> In-Reply-To: <10c02a2505040416043f1e2ab1@mail.gmail.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------070109070002000808060108" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/22 X-Sequence-Number: 12629 This is a multi-part message in MIME format. --------------070109070002000808060108 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Paul Marchant wrote: > Setup: Postgres 8.0.1 & postgresql-8.0-310.jdbc3.jar > java.sql.SQLException: ERROR: unrecognized configuration parameter > "xactisolevel" I can't reproduce this against 8.0.0. 'xactisolevel' doesn't appear anywhere in the current JDBC driver sources either (from memory it was around in the 7.3 driver though).. Are you sure you are using the driver version you think you are using? Test code attached. I get this: > $ java -cp .:postgresql-8.0-310.jdbc3.jar TestIso 'jdbc:postgresql://localhost:5800/test?user=oliver' > driver version: PostgreSQL 8.0 JDBC3 with SSL (build 310) > db version: 8.0.0 > con.getTransactionIsolation() = 2 -O --------------070109070002000808060108 Content-Type: text/plain; name="TestIso.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="TestIso.java" import java.sql.*; public class TestIso { public static void main(String[] args) { try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException e) { System.out.println(e); } Connection con; try { con = DriverManager.getConnection(args[0]); System.out.println("driver version: " + con.getMetaData().getDriverVersion()); System.out.println("db version: " + con.getMetaData().getDatabaseProductVersion()); System.out.println("con.getTransactionIsolation() = " + con.getTransactionIsolation()); con.close(); } catch (SQLException e) { System.out.println(e); } } } --------------070109070002000808060108--