From: Paul Marchant <pmarchant@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel
Date: Mon, 4 Apr 2005 19:04:48 -0400
Message-ID: <10c02a2505040416043f1e2ab1@mail.gmail.com> (raw)
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.
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: pmarchant@gmail.com
Subject: Re: getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel
In-Reply-To: <10c02a2505040416043f1e2ab1@mail.gmail.com>
References: <10c02a2505040416043f1e2ab1@mail.gmail.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