Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetMaxOpenConns (0.67 sec)

  1. tests/prepared_stmt_test.go

    	AssertEqual(t, len(conn.Stmts.Keys()), 0)
    
    }
    
    func TestPreparedStmtDeadlock(t *testing.T) {
    	tx, err := OpenTestConnection(&gorm.Config{})
    	AssertEqual(t, err, nil)
    
    	sqlDB, _ := tx.DB()
    	sqlDB.SetMaxOpenConns(1)
    
    	tx = tx.Session(&gorm.Session{PrepareStmt: true})
    
    	wg := sync.WaitGroup{}
    	for i := 0; i < 100; i++ {
    		wg.Add(1)
    		go func() {
    			user := User{Name: "jinzhu"}
    			tx.Create(&user)
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 8K bytes
    - Viewed (0)
  2. api/go1.2.txt

    pkg crypto/x509, type Certificate struct, IssuingCertificateURL []string
    pkg crypto/x509, type Certificate struct, OCSPServer []string
    pkg database/sql, method (*DB) SetMaxOpenConns(int)
    pkg encoding, type BinaryMarshaler interface { MarshalBinary }
    pkg encoding, type BinaryMarshaler interface, MarshalBinary() ([]uint8, error)
    pkg encoding, type BinaryUnmarshaler interface { UnmarshalBinary }
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
Back to top