-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BinaryParameter(true) with preparedStatement produce weird value for BigDecimal #80
Comments
Looks like an issue with BigDecimal's encoder. Does this issue also occur against PostgreSQL, or just CockroachDB? |
@jeremyrsmith so I tested it with postgreSQL 10.4 on docker, and it got error response for negative BigDecimal value.
create client with BinaryParameter
try insert some data
without BinaryParameter(true) it do works well
|
just provide some update info, I found this on cockroachdb's doc: |
Hi, I am testing finagle-postgres with CockroachDb, and noticed all negative decimal values inserted into database are strange. After some test I narrowed it down to the binaryParameter.
Here's how I reproduced it :
then create a client withBinaryParams(true) and tried to insert some data:
but in the database it became :
however if client is created without withBinaryParams(true)
in the database it seems ok:
The text was updated successfully, but these errors were encountered: