Re: getTypeInfo() bug

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: getTypeInfo() bug
Дата
Msg-id 3FFC9E18.8080909@opencloud.com
обсуждение исходный текст
Ответ на getTypeInfo() bug  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-jdbc
Thomas Kellerer wrote:
> Hello,
>
> I think there is a bug in the DatabaseMetaData.getTypeInfo()
> implementation  (or at least in pg73jdbc3.jar)
>
>  From the documentation of that method:
>
> Retrieves a description of all the standard SQL types supported by this
> database. They are ordered by DATA_TYPE and then by how closely the data
> type maps to the corresponding JDBC SQL type.
>
> My understanding of this is, that the first TYPE_NAME (column 1 from the
> ResultSet) will match the DATA_TYPE best, the next one will second best
> etc.

Yes, as currently implemented getTypeInfo() isn't very useful for
selecting a DB type to use for a given JDBC type.

I submitted a patch to improve it a long time ago, but it wasn't applied
as it didn't build on 1.1 JVMs -- and I haven't have the time or need to
fix it up. It should be in the list archives somewhere if you're interested.

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: PreparedStatement parameters and mutable objects
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: PreparedStatement parameters and mutable objects