-
Notifications
You must be signed in to change notification settings - Fork 2.3k
sql.ScanType Type error for nullable uint64 #1433
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
Comments
database/sql doesn't provide sql.NullUInt64. What other drivers do? |
@methane like clickhouse, it will return big.Int when field greater than int64 |
I don't want to use Big. |
golang/go#47953 was rejected and closed. |
|
I won't add it in this driver. Please copy&paste the |
Issue description
Tell us what should happen and what happens instead
Example code
when field type bigint(20) unsigned null, this code will return scanTypeNullInt, it can't read uint64 data such 18446744073709551615.

https://github.com/go-sql-driver/mysql/blob/master/fields.go#L174
Error log
Configuration
Driver version (or git SHA):
1.7.1
Go version: run
go version
in your console1.18
Server version: E.g. MySQL 5.6, MariaDB 10.0.20
5.7
Server OS: E.g. Debian 8.1 (Jessie), Windows 10
Debian 8.1
The text was updated successfully, but these errors were encountered: