Java Transaction - Mailing list pgsql-interfaces

From Anil Amarakoon
Subject Java Transaction
Date
Msg-id 35513D62.FFD7979@awcoldstream.com
Whole thread Raw
Responses Re: [INTERFACES] Java Transaction  (Peter T Mount <pgint@maidast.demon.co.uk>)
List pgsql-interfaces
Hi All!

How do I do transaction in Java
when I tried
resultset=statement.executeQuery("begin transaction);
resultset.close();
resultset = statement .executeQuery("select foo from bar where
myid=1000");

it does not return any results.

or do I have to do with
connection.setAutoCommit(false);
bla bla...
myconn.commit();

any information in this regard is highly appreciated.

Tks a lot

Anil


pgsql-interfaces by date:

Previous
From: Doug Lo
Date:
Subject: Re: [INTERFACES] Re: pgaccess,... OK What are the steps ????
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] Java Transaction