ExecContext implements the driver.StmtExecContext.ExecContext.
(ctx context.Context, args []driver.NamedValue)
| 57 | |
| 58 | // ExecContext implements the driver.StmtExecContext.ExecContext. |
| 59 | func (s *stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) { |
| 60 | // build query from pattern |
| 61 | if atomic.LoadInt32(&s.closed) != 0 || s.c == nil { |
| 62 | return nil, driver.ErrBadConn |
| 63 | } |
| 64 | |
| 65 | return s.c.ExecContext(ctx, s.pattern, args) |
| 66 | } |
| 67 | |
| 68 | // Close closes the statement. |
| 69 | func (s *stmt) Close() error { |