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

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
Дата
Msg-id Pine.BSO.4.56.0504081800310.24516@leary.csoft.net
обсуждение исходный текст
Ответ на Version 8.0-310 and PreparedStatement.getParameterMetaData()  ("Bruce Raggett" <phicorp@iinet.net.au>)
Ответы Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()  (Kris Jurka <books@ejurka.com>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Exception "The connection attempt failed." (didn't find
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Updatable resultset with join query.