-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
losing decimal precision when updating table #985
Comments
It is very unlikely driver's issue. |
|
@methane
|
That's because you didn't use decimal type. When you use string, I don't use decimal types so I can not recommend any library. Ask it on community, not here. |
#986 This PR works if the argument type is changed from |
Change another way to replay this issue,
You should cast the string as decimal @caeret
|
Issue description
losing decimal precision when updating table, no matter the argument is type
float64
orstring
.Example code
Error log
Configuration
Driver version (or git SHA):
master
Go version: run
go version
in your consolego version go1.12.4 linux/amd64
Server version: E.g. MySQL 5.6, MariaDB 10.0.20
MySQL 5.7.25
Server OS: E.g. Debian 8.1 (Jessie), Windows 10
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: