We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a query like SELECT * FROM t WHERE last_seen > ?, and running db.QueryRowContext(ctx, query, time.Now()).Scan(...) gives me an error:
SELECT * FROM t WHERE last_seen > ?
db.QueryRowContext(ctx, query, time.Now()).Scan(...)
unbound variable "v1" in query
This looks similar to the issue #383, where it was suggested that this could be fixed by prefixing a "v" to the ordinal on unnamed bindings.
"v"
And indeed, stepping through the failure I see the binding is being named "1", and then the lookup for "v1" is missing.
"1"
"v1"
The text was updated successfully, but these errors were encountered:
FYI this fixes my issue completely: https://github.com/hairyhenderson/go-mysql-server/commit/6e8cbacdfc326c1b6a9a6e2239eee02d70e15768
Sorry, something went wrong.
Submit a PR?
I've issued #1592 - note that it's against the v0.14.0 tag - main wasn't working for me and I'm about to hop on a flight.
v0.14.0
main
Successfully merging a pull request may close this issue.
I have a query like
SELECT * FROM t WHERE last_seen > ?
, and runningdb.QueryRowContext(ctx, query, time.Now()).Scan(...)
gives me an error:This looks similar to the issue #383, where it was suggested that this could be fixed by prefixing a
"v"
to the ordinal on unnamed bindings.And indeed, stepping through the failure I see the binding is being named
"1"
, and then the lookup for"v1"
is missing.The text was updated successfully, but these errors were encountered: