From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: pgsql-interfaces@postgresql.org
Subject: JDBC transactions
Date: Wed, 7 Jan 1998 16:08:50 +0200
Message-ID: <l03110703b0d93b50fe62@[147.233.159.109]> (raw)
I wanted to make sure before I attempt it:
If I'm using the JDBC driver, I don't have to use explicit transaction
calls. That is, I don't have to sent the statements "BEGIN TRANSACTION" and
"END".
Instead, I have to do con.setAutoCommit(false), and then, the next SQL call
will initiate a transaction, which I end by using con.commit() or
con.rollback().
That's the documented behavior of JDBC, and what I'm asking is whether (a)
I'm correct in my interpretation, and (b) whether the current JDBC driver
provided with PostgreSQL 6.2.1 in fact behaves like this.
Herouth
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: herouth@oumail.openu.ac.il
Subject: Re: JDBC transactions
In-Reply-To: <l03110703b0d93b50fe62@[147.233.159.109]>
References: <l03110703b0d93b50fe62@[147.233.159.109]>
* 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