pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedgetTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel
4+ messages / 3 participants
[nested] [flat]
* getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel
@ 2005-04-04 23:04 Paul Marchant <pmarchant@gmail.com>
2005-04-04 23:51 ` Re: getTransactionIsolation() causes SQLException - unrecognized Kris Jurka <books@ejurka.com>
2005-04-04 23:59 ` Re: getTransactionIsolation() causes SQLException - unrecognized Oliver Jowett <oliver@opencloud.com>
2005-04-05 18:08 ` Re: getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel Paul Marchant <pmarchant@gmail.com>
0 siblings, 3 replies; 4+ messages in thread
From: Paul Marchant @ 2005-04-04 23:04 UTC (permalink / raw)
To: pgsql-jdbc
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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: getTransactionIsolation() causes SQLException - unrecognized
2005-04-04 23:04 getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel Paul Marchant <pmarchant@gmail.com>
@ 2005-04-04 23:51 ` Kris Jurka <books@ejurka.com>
2 siblings, 0 replies; 4+ messages in thread
From: Kris Jurka @ 2005-04-04 23:51 UTC (permalink / raw)
To: Paul Marchant <pmarchant@gmail.com>; +Cc: pgsql-jdbc
On Mon, 4 Apr 2005, Paul Marchant wrote:
> Setup: Postgres 8.0.1 & postgresql-8.0-310.jdbc3.jar
>
> con = DriverManager.getConnection(url, p);
> System.out.println("con.getTransactionIsolation() = " +
> con.getTransactionIsolation());
> con.close();
>
> Produces this:
> ---------------------
> java.sql.SQLException: ERROR: unrecognized configuration parameter
> "xactisolevel"
What's the complete stacktrace for this error? I'm not convinced it is a
JDBC driver problem.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: getTransactionIsolation() causes SQLException - unrecognized
2005-04-04 23:04 getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel Paul Marchant <pmarchant@gmail.com>
@ 2005-04-04 23:59 ` Oliver Jowett <oliver@opencloud.com>
2 siblings, 0 replies; 4+ messages in thread
From: Oliver Jowett @ 2005-04-04 23:59 UTC (permalink / raw)
To: Paul Marchant <pmarchant@gmail.com>; +Cc: pgsql-jdbc
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);
}
}
}
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel
2005-04-04 23:04 getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel Paul Marchant <pmarchant@gmail.com>
@ 2005-04-05 18:08 ` Paul Marchant <pmarchant@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Paul Marchant @ 2005-04-05 18:08 UTC (permalink / raw)
To: pgsql-jdbc
Thanks for the suggestions. I ran your code and it was a driver issue
after all. Eclipse was somehow finding a 7.3 version of driver on my
system. I have since expunged any files possible of causing the
conflict.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-04-05 18:08 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 23:04 getTransactionIsolation() causes SQLException - unrecognized configuration parameter xactisolevel Paul Marchant <pmarchant@gmail.com>
2005-04-04 23:51 ` Re: getTransactionIsolation() causes SQLException - unrecognized Kris Jurka <books@ejurka.com>
2005-04-04 23:59 ` Re: getTransactionIsolation() causes SQLException - unrecognized Oliver Jowett <oliver@opencloud.com>
2005-04-05 18:08 ` Paul Marchant <pmarchant@gmail.com>
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