You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the driver.Stmt interface, the Exec and Query methods are deprecated. Drivers should instead (or additionally) implement ExecContext and QueryContext.
I couldn't find an existing issue or pull request regarding this. Apologies if I missed it.
Just to note the reason I ran into this: I have some code which needs to make use of a driver.Stmt directly and it calls stmt.Exec and stmt.Query. That triggers the deprecation checks in staticcheck (https://staticcheck.io/docs/staticcheck). I can't change my code to call stmt.ExecContext and stmt.QueryContext because pq.stmt doesn't implement those yet.
(It's not a big deal because I can filter out these warnings if I need to.)
This is a follow-on to #535.
For the driver.Stmt interface, the Exec and Query methods are deprecated. Drivers should instead (or additionally) implement ExecContext and QueryContext.
I couldn't find an existing issue or pull request regarding this. Apologies if I missed it.
/cc @mjibson
The text was updated successfully, but these errors were encountered: