From: Chris White (cjwhite) <cjwhite@cisco.com>
To: 'Kris Jurka' <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and transactions
Date: Sun, 3 Apr 2005 13:27:36 -0700
Message-ID: <200504032027.j33KRa3S010688@sj-core-4.cisco.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0504020229300.29873@leary.csoft.net>
Thanks that helps me solve my problem.
-----Original Message-----
From: Kris Jurka [mailto:books@ejurka.com]
Sent: Friday, April 01, 2005 11:33 PM
To: Chris White (cjwhite)
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] JDBC and transactions
On Fri, 1 Apr 2005, Chris White (cjwhite) wrote:
> 1) When does a transaction start? As soon as I do the first
> insert/update on the connection or as soon as I set autocommit off?
> 2) After doing a commit, when does the next transaction start?
This depends on the driver version you are using. The 7.4 driver starts a
transaction immediately upon setAutoCommit(false) and starts the next
transaction immediately upon commit. The 8.0 driver starts the transaction
on the first execution for both the initial and subsequent transactions.
Kris Jurka
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-jdbc@postgresql.org
Cc: cjwhite@cisco.com, books@ejurka.com
Subject: Re: JDBC and transactions
In-Reply-To: <200504032027.j33KRa3S010688@sj-core-4.cisco.com>
References: <Pine.BSO.4.56.0504020229300.29873@leary.csoft.net> <200504032027.j33KRa3S010688@sj-core-4.cisco.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