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

Поиск
Список
Период
Сортировка
Искать

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

От:
Kim Ho <kho@redhat.com>
Дата:
Вложения:
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 CHAR and trim if necessary.

Cheers,

Kim


FAQ