- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for New2 (0.02 sec)
-
tests/update_belongs_to_test.go
t.Fatalf("errors happened when update: %v", err) } var user4 User DB.Preload("Company").Preload("Manager").Find(&user4, "id = ?", user.ID) CheckUser(t, user4, user) user.Company.Name += "new2" user.Manager.Name += "new2" if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Select("`Company`").Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user5 User
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 1.6K bytes - Viewed (0) -
tests/named_argument_test.go
if err := DB.Exec("UPDATE named_users SET name1 = @name, name2 = @name2, name3 = @name", sql.Named("name", "jinzhu-new"), sql.Named("name2", "jinzhu-new2")).Error; err != nil { t.Errorf("failed to update with named arg") } namedUser.Name1 = "jinzhu-new" namedUser.Name2 = "jinzhu-new2" namedUser.Name3 = "jinzhu-new" var result5 NamedUser
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Dec 21 11:50:00 UTC 2021 - 2.7K bytes - Viewed (0)