pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anil Amarakoon <anil@server.awcoldstream.com>
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: Java Transaction
Date: Wed, 06 May 1998 23:49:38 -0500
Message-ID: <35513D62.FFD7979@awcoldstream.com> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <35513D62.FFD7979@awcoldstream.com>
Permalink:  ../35513D62.FFD7979@awcoldstream.com/
Also on:    postgresql.org/message-id/35513D62.FFD7979@awcoldstream.com

 · 

reply

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: anil@server.awcoldstream.com
  Subject: Re: Java Transaction
  In-Reply-To: <35513D62.FFD7979@awcoldstream.com>

* 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