- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for updates_02_newname (0.26 sec)
-
tests/update_test.go
CheckUser(t, user2, *users[1]) // update with struct time.Sleep(1 * time.Second) DB.Table("users").Where("name in ?", []string{users[1].Name}).Updates(User{Name: "updates_02_newname"}) var user3 User if err := DB.First(&user3, "name = ?", "updates_02_newname").Error; err != nil { t.Errorf("User2's name should be updated") } if user2.UpdatedAt.Format(time.RFC1123Z) == user3.UpdatedAt.Format(time.RFC1123Z) {
Registered: Sun Oct 27 09:35:08 UTC 2024 - Last Modified: Mon Dec 04 03:50:58 UTC 2023 - 30.3K bytes - Viewed (0)