Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
Дата
Msg-id CAKFQuwaw_UhXDhveG5Sv1qivJgP5S=wVHwuwJp_cZ35DXx+EfA@mail.gmail.com
обсуждение исходный текст
Ответ на PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue  ("Thangavel, Parameswaran" <Parameswaran.Thangavel@rsa.com>)
Ответы Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
On Friday, October 16, 2020, Thangavel, Parameswaran <Parameswaran.Thangavel@rsa.com> wrote:

Any thoughts on why this behavior, Is this expected?

Not immediately, can you demonstrate the problem without using JDBC?  The JDBC project has its own issues setup on GitHub.

preparedStatement.setFloat(4, val);

    float_value numeric

Frankly, I would consider this to be an application bug, incorrectly using the API. BigDecimal maps onto numeric.

David J.

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

Предыдущее
От: "Thangavel, Parameswaran"
Дата:
Сообщение: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
Следующее
От: Tijs van Dam
Дата:
Сообщение: date/time special values incorrectly cached as constant in plpgsql