(ctx context.Context, args []driver.NamedValue)
| 704 | } |
| 705 | |
| 706 | func (stmt *mysqlStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) { |
| 707 | dargs, err := namedValueToValue(args) |
| 708 | if err != nil { |
| 709 | return nil, err |
| 710 | } |
| 711 | |
| 712 | if err := stmt.mc.watchCancel(ctx); err != nil { |
| 713 | return nil, err |
| 714 | } |
| 715 | defer stmt.mc.finish() |
| 716 | |
| 717 | return stmt.Exec(dargs) |
| 718 | } |
| 719 | |
| 720 | func (mc *mysqlConn) watchCancel(ctx context.Context) error { |
| 721 | if mc.watching { |
nothing calls this directly
no test coverage detected