- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBlockGlobalUpdate (0.09 sec)
-
tests/update_test.go
// user2 should not be updated var user5, user6 User DB.First(&user5, users[0].ID) DB.First(&user6, users[1].ID) CheckUser(t, user5, *users[0]) CheckUser(t, user6, *users[1]) } func TestBlockGlobalUpdate(t *testing.T) { if err := DB.Model(&User{}).Update("name", "jinzhu").Error; err == nil || !errors.Is(err, gorm.ErrMissingWhereClause) { t.Errorf("should returns missing WHERE clause while updating error, got err %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)