X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 691AC3A5AC8 for ; Tue, 11 Jan 2005 20:38:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76434-09 for ; Tue, 11 Jan 2005 20:37:58 +0000 (GMT) Received: from web14225.mail.yahoo.com (web14225.mail.yahoo.com [66.163.171.109]) by svr1.postgresql.org (Postfix) with SMTP id 3AED03A5AC6 for ; Tue, 11 Jan 2005 20:37:58 +0000 (GMT) Received: (qmail 44977 invoked by uid 60001); 11 Jan 2005 20:37:57 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=jWNHJ5WDXtGsTmLchi+8at5/YLHkbOOSsbe/1c8xPN+eOilasePHSFOIn6MMT3lUU1w25wMeNX89qlm4ODVx1dWX6Q4UU40DqWx8MDu1uEOu8L7dPDJNaB+c01GLBDTZY0RrFT8fvEyzaTkNZzTzFroO6ow/iGkbtmgluJos2+Y= ; Message-ID: <20050111203757.44975.qmail@web14225.mail.yahoo.com> Received: from [128.91.25.59] by web14225.mail.yahoo.com via HTTP; Tue, 11 Jan 2005 12:37:57 PST Date: Tue, 11 Jan 2005 12:37:57 -0800 (PST) From: "j.random.programmer" Subject: Postgres JDBC driver (80b1.308) bug To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.374 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200501/80 X-Sequence-Number: 11960 The postgresql 8 version 308 JDBC driver is broken (jar file: pg80b1.308.jdbc3.jar) I am running this driver against postgres 7.4. The System.out.println gives a stack overflow error because the Statement toString() is broken !! The following code illustrates the problem. I'm amazed that Statement.toString() would cause this kind of problem -- aren't the driver writers testing toString() methods of various implementation classes ? Best regards, --j ------------- code --------------------------------------- import java.sql.*; import java.io.*; public class foo { public static void main (String args[]) throws Exception { Connection con = getConnection(); String where_stmt = "SELECT a, b, c from alltypes WHERE id = 39"; Statement stmt = con.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); System.out.println(stmt); //<-------- ERROR HERE } static Connection getConnection() throws Exception { //return a connection here, implement for your system } } --------------------------- end ---------------------- __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250