2
0

Add driver.StmtExecContext support to stdlib.Stmt

This commit is contained in:
Jack Christensen
2017-05-19 16:18:54 -05:00
parent f9cb22e4b8
commit 7f226539a0
2 changed files with 52 additions and 0 deletions
+4
View File
@@ -388,6 +388,10 @@ func (s *Stmt) Exec(argsV []driver.Value) (driver.Result, error) {
return s.conn.Exec(s.ps.Name, argsV)
}
func (s *Stmt) ExecContext(ctx context.Context, argsV []driver.NamedValue) (driver.Result, error) {
return s.conn.ExecContext(ctx, s.ps.Name, argsV)
}
func (s *Stmt) Query(argsV []driver.Value) (driver.Rows, error) {
return s.conn.queryPrepared(s.ps.Name, argsV)
}