pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedJava Transaction
2+ messages / 2 participants
[nested] [flat]
* Java Transaction
@ 1998-05-07 04:49 Anil Amarakoon <anil@server.awcoldstream.com>
0 siblings, 1 reply; 2+ messages in thread
From: Anil Amarakoon @ 1998-05-07 04:49 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] Java Transaction
@ 1998-05-07 05:51 Peter T Mount <pgint@maidast.demon.co.uk>
parent: Anil Amarakoon <anil@server.awcoldstream.com>
0 siblings, 0 replies; 2+ messages in thread
From: Peter T Mount @ 1998-05-07 05:51 UTC (permalink / raw)
To: Anil Amarakoon <anil@server.awcoldstream.com>; +Cc: pgsql-interfaces
On Wed, 6 May 1998, Anil Amarakoon wrote:
> 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.
The JDBC way is using AutoCommit, and the first way may fail in 6.4
--
Peter T Mount peter@retep.org.uk or petermount@earthling.net
Main Homepage: http://www.retep.org.uk
************ Someday I may rebuild this signature completely ;-) ************
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov.uk
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-05-07 05:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-05-07 04:49 Java Transaction Anil Amarakoon <anil@server.awcoldstream.com>
1998-05-07 05:51 ` Peter T Mount <pgint@maidast.demon.co.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