Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()

From: Kris Jurka <books(at)ejurka(dot)com>
To: Bruce Raggett <phicorp(at)iinet(dot)net(dot)au>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
Date: 2005-04-08 23:04:16
Message-ID: Pine.BSO.4.56.0504081800310.24516@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 7 Apr 2005, Bruce Raggett wrote:

> I have used PreparedStatement.getParameterMetaData() with version
> 8.0-310 and obtained the following results:
> (1) parameterMetaData.getParameterCount() worked correctly.
> (2) parameterMetaData.getParameterType() worked correctly.
> (3) parameterMetaData.getParameterClassName() returned null instead of
> java.lang.String.
>
> Does the third result above indicate a bug, or is this result expected
> at this stage of development?

Both. It clearly doesn't work, so it's a bug, but at the same time the
method is hardcoded to always to return null, so it's missing code instead
of non-working code. I suppose it should throw an Exception instead of
failing silently, but getting it to work can't be that hard.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2005-04-08 23:06:47 Re: Updatable resultset with join query.
Previous Message Oliver Jowett 2005-04-08 23:02:26 Re: Exception "The connection attempt failed." (didn't find