-
-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Description
I have a query like SELECT * FROM t WHERE last_seen > ?, and running db.QueryRowContext(ctx, query, time.Now()).Scan(...) gives me an error:
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.
And indeed, stepping through the failure I see the binding is being named "1", and then the lookup for "v1" is missing.
Metadata
Metadata
Assignees
Labels
No labels