Re: patch for getXXX methods

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: patch for getXXX methods
Дата
Msg-id 40F15718.7000302@opencloud.com
обсуждение исходный текст
Ответ на Re: patch for getXXX methods  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: patch for getXXX methods  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Dave Cramer wrote:
> Attached, with -cb this time

Thanks. Comments:

How you handle bytes and shorts is inconsistent with how you handle
longs; we should consistently do it one way or the other. Since you lose
precision going via a double, that probably means the BigInteger approach.

The shared conversion/rangecheck logic should be done once in a helper
function rather than duplicated -- call the helper with appropriate
range info and cast the result.

I still don't like silently discarding any fractional portion of the value.

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: No class found for inet
Следующее
От: "Dario V. Fassi"
Дата:
Сообщение: Re: Timestamp Question