You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scanner should return one of int64,float64,bool,[]byte,string,time.Time,nil , but I got uint64 #1575
Yes, it violates database/sql convention.
But this violation is necessary to support uint64. So we can not fix it until database/sql supports uint64 natively.
Activity
methane commentedon Mar 25, 2024
Yes, it violates database/sql convention.
But this violation is necessary to support uint64. So we can not fix it until database/sql supports uint64 natively.
bronze1man commentedon Mar 26, 2024
@methane Is there any document or examples about how to implement sql.Scanner to work with https://github.com/go-sql-driver/mysql?
I do not like try and fail again and again.
methane commentedon Mar 26, 2024
There is perfect document.
https://cs.opensource.google/go/go/+/master:src/database/sql/convert.go;l=219-480
mysql/packets.go
Lines 769 to 856 in d7ddb8b
mysql/packets.go
Lines 1230 to 1403 in d7ddb8b
It must be readable than my English.