Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/update_test.go

    		t.Fatalf("invalid updating SQL, got %v", stmt.SQL.String())
    	}
    
    	user3 := *GetUser("save3", Config{})
    	DB.Create(&user3)
    
    	if err := DB.First(&User{}, "name = ?", "save3").Error; err != nil {
    		t.Fatalf("failed to find created user")
    	}
    
    	user3.Name = "save3_"
    	if err := DB.Model(User{Model: user3.Model}).Save(&user3).Error; err != nil {
    		t.Fatalf("failed to save user, got %v", err)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
Back to top