Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isUsingClosedConnError (0.09 sec)

  1. tests/prepared_stmt_test.go

    	}
    	pdb.Mux.Unlock()
    
    	pdb.Reset()
    	pdb.Mux.Lock()
    	defer pdb.Mux.Unlock()
    	if len(pdb.Stmts) != 0 {
    		t.Fatalf("prepared stmt should be empty")
    	}
    }
    
    func isUsingClosedConnError(err error) bool {
    	// https://github.com/golang/go/blob/e705a2d16e4ece77e08e80c168382cdb02890f5b/src/database/sql/sql.go#L2717
    	return err.Error() == "sql: statement is closed"
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top