-
Notifications
You must be signed in to change notification settings - Fork 141
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
tests fail with SQL Server Native Client 11.0 #4
Comments
Original comment by |
Original comment by |
Original comment by
|
Original comment by
|
popeliv
pushed a commit
to popeliv/odbc
that referenced
this issue
Jul 18, 2024
As per the [specifications](https://pkg.go.dev/database/sql/driver#QueryerContext), `QueryerContext` is an optional interface. When it's not implemented, the driver falls back to the `Queryer` interface that is also optional, and eventually defaults to: - preparing a query - executing the statement - closing the statement This means that the context passed to `QueryContext` gets completely ignored and therefore timeouts aren't honoured. This commit provides an implementation of the `QueryerContext` interface that honours the context. When the context expires or gets cancelled, the statement gets cancelled and closed, and upon completion, an error is returned.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original issue reported on code.google.com by
alex.bra...@gmail.com
on 25 Apr 2013 at 1:04The text was updated successfully, but these errors were encountered: