Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A46C79FA02C for ; Wed, 20 Dec 2006 14:29:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 06348-02 for ; Wed, 20 Dec 2006 14:29:26 -0400 (AST) X-Greylist: delayed 00:07:02.656413 by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by postgresql.org (Postfix) with ESMTP id B13299F9398 for ; Wed, 20 Dec 2006 14:29:27 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so2926411nfb for ; Wed, 20 Dec 2006 10:29:26 -0800 (PST) Received: by 10.49.64.18 with SMTP id r18mr5980375nfk.1166638942450; Wed, 20 Dec 2006 10:22:22 -0800 (PST) Received: by 10.49.31.11 with HTTP; Wed, 20 Dec 2006 10:22:22 -0800 (PST) Message-ID: Date: Wed, 20 Dec 2006 10:22:22 -0800 From: "John LH" To: pgsql-jdbc@postgresql.org Subject: Driver Bug MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9502_13531527.1166638942416" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.353 tagged_above=0 required=5 tests=BAYES_50, HTML_10_20, HTML_MESSAGE X-Spam-Level: * X-Archive-Number: 200612/100 X-Sequence-Number: 16332 ------=_Part_9502_13531527.1166638942416 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_9502_13531527.1166638942416 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_9502_13531527.1166638942416--