-
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
Scanner should return one of int64,float64,bool,[]byte,string,time.Time,nil , but I got uint64 #1575
Comments
Yes, it violates database/sql convention. |
@methane Is there any document or examples about how to implement sql.Scanner to work with https://github.com/go-sql-driver/mysql? |
There is perfect document. https://cs.opensource.google/go/go/+/master:src/database/sql/convert.go;l=219-480 Lines 769 to 856 in d7ddb8b
Lines 1230 to 1403 in d7ddb8b
It must be readable than my English. |
It maybe a bug of database/sql , if it is ,please tell me.
Issue description
https://pkg.go.dev/database/sql#Scanner says Scanner should return one of int64,float64,bool,[]byte,string,time.Time,nil , but I got uint64
Example code
the sql:
some of my scaner_t implement.
Error log
Configuration
Driver version (or git SHA):
github.com/go-sql-driver/mysql v1.8.0
Go version: run
go version
in your consolego version go1.19.2 darwin/amd64
Server version: E.g. MySQL 5.6, MariaDB 10.0.20
Server OS: E.g. Debian 8.1 (Jessie), Windows 10
mac os 14.2.1
The text was updated successfully, but these errors were encountered: