Re: Version 8.0-310 and PreparedStatement.getParameterMetaData() - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
Date
Msg-id Pine.BSO.4.56.0504081800310.24516@leary.csoft.net
Whole thread Raw
In response to Version 8.0-310 and PreparedStatement.getParameterMetaData()  ("Bruce Raggett" <phicorp@iinet.net.au>)
Responses Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
List 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

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Exception "The connection attempt failed." (didn't find
Next
From: Kris Jurka
Date:
Subject: Re: Updatable resultset with join query.