Allow setObject(x,y,Types.BIT) if y is a Number & getObject() on bit columns

Поиск
Список
Период
Сортировка
От Kim Ho
Тема Allow setObject(x,y,Types.BIT) if y is a Number & getObject() on bit columns
Дата
Msg-id 1055956152.13900.31.camel@topanga.toronto.redhat.com
обсуждение исходный текст
Ответы Re: [JDBC] Allow setObject(x,y,Types.BIT) if y is a Number &  (Kim Ho <kho@redhat.com>)
Список pgsql-patches
Problem:
 - setObject(x,y,Types.BIT) throws an exception if y is a Number
 - getObject() on a bit column will return null instead of True or False
Boolean objects

Fix:
 - Added check in setObject() to check to that the Number has value==1.
If so, set to True. False otherwise. This seems to be consistent with
the rest of the code.
 - Added BIT to JDBC datatype list


Cheers,

Kim

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Runtime.SGML diff ... please expedite!
Следующее
От: Kim Ho
Дата:
Сообщение: Fix getXXX methods when used with CHAR columns or columns with decimals