pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Paul Marchant <pmarchant@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: getTransactionIsolation() causes SQLException - unrecognized
Date: Tue, 05 Apr 2005 11:59:40 +1200
Message-ID: <4251D4EC.9070204@opencloud.com> (raw)
In-Reply-To: <10c02a2505040416043f1e2ab1@mail.gmail.com>
References: <10c02a2505040416043f1e2ab1@mail.gmail.com>

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

Attachments:

TestIso.java (text/plain, 787B) download 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); } } }

view thread (4+ messages)  latest in thread

Message-ID: <4251D4EC.9070204@opencloud.com>
Permalink:  ../4251D4EC.9070204@opencloud.com/
Also on:    postgresql.org/message-id/4251D4EC.9070204@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, pmarchant@gmail.com
  Subject: Re: getTransactionIsolation() causes SQLException - unrecognized
  In-Reply-To: <4251D4EC.9070204@opencloud.com>
  References: <10c02a2505040416043f1e2ab1@mail.gmail.com> <4251D4EC.9070204@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox