Re: Fix getXXX methods when used with CHAR columns or

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Fix getXXX methods when used with CHAR columns or
Дата
Msg-id 1057007368.3273.92.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Fix getXXX methods when used with CHAR columns or columns with decimals  (Kim Ho <kho@redhat.com>)
Список pgsql-jdbc
patch applied,

Thanks,

Dave
On Wed, 2003-06-18 at 13:44, Kim Ho wrote:
> Problem:
>  - Error parsing input in getByte() and getShort() if input has a decimal or whitespace (from CHAR columns)
>  - Error parsing CHAR columns in other getXXX methods.
>
> Fix:
>  - Added trim() to getXXX methods
>  - In getByte() and getShort(), check the field type and take out the decimal and everything after it. Also check for
CHARand trim if necessary. 
>
> Cheers,
>
> Kim
>
>
>
> ______________________________________________________________________
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
--
Dave Cramer <Dave@micro-automation.net>


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

Предыдущее
От: Kim Ho
Дата:
Сообщение: Re: Allow setObject(x,y,Types.BIT) if y is a Number &
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Allow setObject(x,y,Types.BIT) if y is a Number &