Re: postgresql and java data types mismatch.....

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: postgresql and java data types mismatch.....
Дата
Msg-id Pine.BSO.4.62.0508190001320.11917@leary.csoft.net
обсуждение исходный текст
Ответ на Re: postgresql and java data types mismatch.....  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc

On Fri, 12 Aug 2005, Oliver Jowett wrote:

> Andres Ledesma wrote:
>
>> A CallableStatement Function was executed and the return was of type
>> (java.sql.Types=-7) however type=java.sql.Types=16 was registered.
>>
>> Types = -7 correspond to Types.BIT
>> Types = 16 correspond to Types.BOOLEAN
>
> A workaround is to just register the OUT parameter as Types.BIT, but
> yes, the driver shouldn't really complain in this case.
>

Just to follow up on this, the 8.0 and 8.1 drivers correctly handle this
and do not report an error.  It is still possible to generate this error
with the new drivers by using the JDBC 2 version of the driver because it
doesn't understand the JDBC 3 type BOOLEAN and thereforce cannot map it
correctly.

Kris Jurka


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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Memory leak in 8.0 JDBC driver?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Updated high-unicode patch