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 488B453673 for ; Tue, 5 Apr 2005 00:04:54 +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 99369-06 for ; Mon, 4 Apr 2005 23:04:52 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by svr1.postgresql.org (Postfix) with ESMTP id 398BE53678 for ; Tue, 5 Apr 2005 00:04:51 +0100 (BST) Received: by rproxy.gmail.com with SMTP id a41so1339007rng for ; Mon, 04 Apr 2005 16:04:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=RZH8o07uIDR5mz4PW3RSNZTIaGvtRMdMWrPV6kMYrp3Wh8UXXWPqWjvjdTwsrYyFZy5aIRNu5tj6LQNr++kU6wVaq2yBnI1VES4w9b4ECmDUMIZV0h5Ao0gyIrsVX70y9HxKPAKmNWxSuidRbiemaAIOUiJkLcO2FbKBsiZ0RsI= Received: by 10.38.87.21 with SMTP id k21mr5616013rnb; Mon, 04 Apr 2005 16:04:49 -0700 (PDT) Received: by 10.38.24.21 with HTTP; Mon, 4 Apr 2005 16:04:48 -0700 (PDT) Message-ID: <10c02a2505040416043f1e2ab1@mail.gmail.com> Date: Mon, 4 Apr 2005 19:04:48 -0400 From: Paul Marchant Reply-To: Paul Marchant To: pgsql-jdbc@postgresql.org Subject: getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.398 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200504/19 X-Sequence-Number: 12626 Setup: Postgres 8.0.1 & postgresql-8.0-310.jdbc3.jar The following code: --------------------------- try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException e) { System.out.println(e); } String url = "jdbc:postgresql://dbserver/test"; Properties p = new Properties(); p.setProperty("user", "test"); p.setProperty("password", "test"); Connection con; try { con = DriverManager.getConnection(url, p); System.out.println("con.getTransactionIsolation() = " + con.getTransactionIsolation()); con.close(); } catch (SQLException e) { System.out.println(e); } Produces this: --------------------- java.sql.SQLException: ERROR: unrecognized configuration parameter "xactisolevel" I've tried: ------------ 1.) configuring the default_transaction_isolation parameter in postgresql.conf 2.) setting it programattically via con.setTransactionIsolation() and now I'm stuck. I really don't care what the transaction isolation level is. I'm trying to use Postgres 8.0 as a backend database for Hibernate and org.postgresql.Driver.getTransactionIsolation() is halting my progress. Any help would be greatly appreciated.