(ctx context.Context, query string, args []driver.NamedValue)
| 651 | } |
| 652 | |
| 653 | func (mc *mysqlConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) { |
| 654 | dargs, err := namedValueToValue(args) |
| 655 | if err != nil { |
| 656 | return nil, err |
| 657 | } |
| 658 | |
| 659 | if err := mc.watchCancel(ctx); err != nil { |
| 660 | return nil, err |
| 661 | } |
| 662 | defer mc.finish() |
| 663 | |
| 664 | return mc.Exec(query, dargs) |
| 665 | } |
| 666 | |
| 667 | func (mc *mysqlConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) { |
| 668 | if err := mc.watchCancel(ctx); err != nil { |