-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Failed scanning row for mysql with Option #24
Comments
Can you test with v1.9.0 please ? |
@samber I just tried with both the v1.9.0 and the v1.11.0, both of them have the same issue. |
Similar issue here as well. We are about to fork this repository and make use of the |
-> v1.13.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example
CREATE TABLE
t(
optionalVARCHAR(64));
then will got
Failed scanning row: sql: Scan error on column index 1, name "optional": failed to scan Option[T]
, and the reason isthat type of arg
src
of Scan is []uint8, and failed here when assert type isstring
, refer to sql.NullString, we can use the functionsql.convertAssign
to replace thedriver.DefaultParameterConverter.ConvertValue
to resolve it, but the convertAssign is private, and maybe won't be public(refer to golang/go#24258), so we can copy out the convertAssign and make some modification or write a new convert function? what do you think? Or have some other solution?The text was updated successfully, but these errors were encountered: