From: Mican Bican <mican58@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: java is locked when select for update
Date: Wed, 9 Mar 2005 16:54:40 +0100
Message-ID: <915cd38805030907545882333f@mail.gmail.com> (raw)
In-Reply-To: <915cd3880503081437272e5cfb@mail.gmail.com>
References: <915cd3880503081437272e5cfb@mail.gmail.com>
Hello,
I use Postgresql 8.0.1 with java 5 and jdbc3 on windows xp.
When I do a "select for update" a row.. and dont commit the statement
and when in this time an other user do also this. my java gui wait and
locked till the first user commit his statement.. my question is how
can I realize this with java.. for example why they are not a
SQLException or are Error like "an other user is updating this row"...
or can I say to java "dont wait" or "dont lock" when you make a select
for update and an other user before you make this..
thank you..
best regards
Mican Bican
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: mican58@gmail.com
Subject: Re: java is locked when select for update
In-Reply-To: <915cd38805030907545882333f@mail.gmail.com>
References: <915cd3880503081437272e5cfb@mail.gmail.com> <915cd38805030907545882333f@mail.gmail.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