Fix getXXX methods when used with CHAR columns or columns with decimals

Поиск
Список
Период
Сортировка
От Kim Ho
Тема Fix getXXX methods when used with CHAR columns or columns with decimals
Дата
Msg-id 1055958280.13891.40.camel@topanga.toronto.redhat.com
обсуждение исходный текст
Ответы Re: Fix getXXX methods when used with CHAR columns or  (Dave Cramer <Dave@micro-automation.net>)
Список pgsql-jdbc
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



Вложения

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

Предыдущее
От: Kim Ho
Дата:
Сообщение: Allow setObject(x,y,Types.BIT) if y is a Number & getObject() on bit columns
Следующее
От: Kim Ho
Дата:
Сообщение: ToBoolean method return correct Boolean values as per JDBC spec