Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for User2 (0.03 sec)

  1. tests/transaction_test.go

    	}
    
    	if err := tx.SavePoint("save_point2").Error; err != nil {
    		t.Fatalf("Failed to save point, got error %v", err)
    	}
    
    	user2 := *GetUser("transaction-save-point-2", Config{})
    	tx.Create(&user2)
    
    	if err := tx.First(&User{}, "name = ?", user2.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := tx.Commit().Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top