(ctx context.Context, query string, args ...interface{})
| 168 | } |
| 169 | |
| 170 | func (tx *PreparedStmtTX) ExecContext(ctx context.Context, query string, args ...interface{}) (result sql.Result, err error) { |
| 171 | stmt, err := tx.PreparedStmtDB.prepare(ctx, tx.Tx, true, query) |
| 172 | if err == nil { |
| 173 | result, err = tx.Tx.StmtContext(ctx, stmt.Stmt).ExecContext(ctx, args...) |
| 174 | if errors.Is(err, driver.ErrBadConn) { |
| 175 | tx.PreparedStmtDB.Stmts.Delete(query) |
| 176 | } |
| 177 | } |
| 178 | return result, err |
| 179 | } |
| 180 | |
| 181 | func (tx *PreparedStmtTX) QueryContext(ctx context.Context, query string, args ...interface{}) (rows *sql.Rows, err error) { |
| 182 | stmt, err := tx.PreparedStmtDB.prepare(ctx, tx.Tx, true, query) |
nothing calls this directly
no test coverage detected