pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC: can't set transaction isolation level
2+ messages / 2 participants
[nested] [flat]

* JDBC: can't set transaction isolation level
@ 2001-03-12 17:29  nelson@radix.com.br
  0 siblings, 1 reply; 2+ messages in thread

From: nelson@radix.com.br @ 2001-03-12 17:29 UTC (permalink / raw)
  To: pgsql-interfaces

    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.


                                                          



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [INTERFACES] JDBC: can't set transaction isolation level
@ 2001-03-12 20:10  Peter Mount <peter@retep.org.uk>
  parent: nelson@radix.com.br
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Mount @ 2001-03-12 20:10 UTC (permalink / raw)
  To: nelson@radix.com.br; +Cc: pgsql-jdbc@postgresql.org

At 14:29 12/03/01 -0300, nelson@radix.com.br wrote:
redirecting to jdbc list:
>     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?

I did fix some bugs on this about a month ago, so the 7.1 driver should 
have this fixed.

Peter




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-03-12 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-12 17:29 JDBC: can't set transaction isolation level nelson@radix.com.br
2001-03-12 20:10 ` Peter Mount <peter@retep.org.uk>

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