Re: Postgres JDBC driver (80b1.308) bug

From: Kris Jurka <books(at)ejurka(dot)com>
To: "j(dot)random(dot)programmer" <javadesigner(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Postgres JDBC driver (80b1.308) bug
Date: 2005-01-11 21:05:37
Message-ID: Pine.BSO.4.56.0501111602270.5454@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tue, 11 Jan 2005, j.random.programmer wrote:

> The postgresql 8 version 308 JDBC driver is broken
> (jar file: pg80b1.308.jdbc3.jar)
>
> 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 ?

Apparently not. It's certainly broken, but what would you expect it to
do? PreparedStatement has a real query that it prints, but Statement has
no such information. Would you like it return null? ""? Something else?

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2005-01-11 22:06:14 Re: Removing our datasource/pooling implementation.
Previous Message j.random.programmer 2005-01-11 20:37:57 Postgres JDBC driver (80b1.308) bug