Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "Thangavel, Parameswaran" <Parameswaran(dot)Thangavel(at)rsa(dot)com>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue
Date: 2020-10-17 01:32:25
Message-ID: CAKFQuwaw_UhXDhveG5Sv1qivJgP5S=wVHwuwJp_cZ35DXx+EfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Friday, October 16, 2020, Thangavel, Parameswaran <
Parameswaran(dot)Thangavel(at)rsa(dot)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.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tijs van Dam 2020-10-17 10:09:20 date/time special values incorrectly cached as constant in plpgsql
Previous Message Thangavel, Parameswaran 2020-10-17 01:08:14 PostgresSQL 10 | Driver 42.2.5 | Float Conversion Issue