From: John LH <johnlh@aquafold.com>
To: pgsql-jdbc@postgresql.org
Subject: Driver Bug
Date: Wed, 20 Dec 2006 10:22:22 -0800
Message-ID: <e91948a90612201022w20864c67keca55ec2ae113d2@mail.gmail.com> (raw)
Hi,
I've found a bug in the drivers which seem to occur in the "8.1-408 JDBC 3"
and "8.2-504 JDBC 3" drivers when executing on a 8.1 and 8.2 PG Server. The
problem does not occur on a 8.0 server.
The problem occurs when the following situation is produced ...
1. Connection.autoCommit(true);
2. Statement.setMaxRows(1);
3. Statement.execute("select * from information_schema.parameters");
In this case, the Statement.execute() will never return and basically put
the application in a hanging state. If the Connection.autoCommit() is set
to false then all works well. If the Statement.setMaxRows() is set to a
number higher then the number of rows to be returned then all works well.
But if you auto commit is true and max rows is less then the total number of
rows and the statement is executed on PG 8.1 or 8.2.
Any ideas?
thanks
-John
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: johnlh@aquafold.com
Subject: Re: Driver Bug
In-Reply-To: <e91948a90612201022w20864c67keca55ec2ae113d2@mail.gmail.com>
References: <e91948a90612201022w20864c67keca55ec2ae113d2@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