mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
Update contrib/drivers/mssql/mssql_z_unit_basic_test.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@ -148,7 +148,7 @@ func TestDoInsert(t *testing.T) {
|
||||
_, err := db.Save(context.Background(), "t_user", data, 10)
|
||||
gtest.AssertNE(err, nil)
|
||||
|
||||
// Replace should now work (it will auto-detect primary key)
|
||||
// Replace should fail because primary key 'id' is not in the data
|
||||
_, err = db.Replace(context.Background(), "t_user", data, 10)
|
||||
gtest.AssertNE(err, nil)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user