- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for update_name_1 (0.06 sec)
-
tests/hooks_test.go
err := DB.Model(&Product5{}).Where("id", p.ID).Update("name", "update_name_1").Error if err != nil { t.Fatalf("should update success, but got err %v", err) } if beforeUpdateCall != 1 { t.Fatalf("before update should be called") } err = DB.Model(Product5{}).Where("id", p.ID).Update("name", "update_name_2").Error if !errors.Is(err, gorm.ErrInvalidValue) {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Jun 17 03:59:06 UTC 2024 - 16.7K bytes - Viewed (0)