-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
It doesn't work for lastest golang version #349
Comments
@zhonglushu are you able to say what database and driver are you using? |
The driver is https://github.com/go-sql-driver/mysql |
@zhonglushu to try and replicate this issue, are you also able to share a snippet of Go code? - both the code you are code using to call sqlx and the struct. In case you haven't already tried, try a forced rebuilding of packages in your project using:
|
The sqlx code is:
|
I found scan method can not convert columns read from the database into *interface{} |
@zhonglushu I'm not seeing the same issue. Out of interesting, what does the output look like when you range over the map instead? :
|
It doesn't work,I found scan method can not convert columns read from the database into *interface{}.
After I modify the code "var name interface{}" like this:
I found the code runs properly, why? |
@zhonglushu This behavior seems to be specific to the 'github.com/go-sql-driver/mysql' driver. |
@jhngrant Thank you very much! |
I just get some meaningless Numbers.
The text was updated successfully, but these errors were encountered: