Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for StmtContext (0.05 sec)

  1. prepare_stmt.go

    func (tx *PreparedStmtTX) ExecContext(ctx context.Context, query string, args ...interface{}) (result sql.Result, err error) {
    	stmt, err := tx.PreparedStmtDB.prepare(ctx, tx.Tx, true, query)
    	if err == nil {
    		result, err = tx.Tx.StmtContext(ctx, stmt.Stmt).ExecContext(ctx, args...)
    		if errors.Is(err, driver.ErrBadConn) {
    			tx.PreparedStmtDB.Mux.Lock()
    			defer tx.PreparedStmtDB.Mux.Unlock()
    
    			go stmt.Close()
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top