Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for prepared_stmt_reset (0.07 sec)

  1. tests/prepared_stmt_test.go

    		t.Errorf("Failed, got error: %v", err)
    	}
    }
    
    func TestPreparedStmtReset(t *testing.T) {
    	tx := DB.Session(&gorm.Session{PrepareStmt: true})
    
    	user := *GetUser("prepared_stmt_reset", Config{})
    	tx = tx.Create(&user)
    
    	pdb, ok := tx.ConnPool.(*gorm.PreparedStmtDB)
    	if !ok {
    		t.Fatalf("should assign PreparedStatement Manager back to database when using PrepareStmt mode")
    	}
    
    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