From: nelson@radix.com.br
To: pgsql-interfaces@postgresql.org
Subject: JDBC: can't set transaction isolation level
Date: Mon, 12 Mar 2001 14:29:09 -0300 (BRT)
Message-ID: <984418149.3aad0765ac09c@gandalf.radix.com.br> (raw)
Hi,
I need to set transaction isolation level to SERIALIZABLE in a java program.
Calling the method setTransationIsolation of class Connection has no effect: the
isolation level still remains READ_COMMITTED (the default).
I tried to create a Statement and set the isolation level as an ordinary SQL
- stmt.executeUpdate("set transaction isolation level serializable"); - and it
works fine.
And finally, the method Connection.getTransationIsolation() always returns
2, whatever the isolation level is set to.
These problems happen with PostgreSQL 7.0.3. Can you help me?
Thanks.
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: nelson@radix.com.br
Subject: Re: JDBC: can't set transaction isolation level
In-Reply-To: <984418149.3aad0765ac09c@gandalf.radix.com.br>
* 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