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:
John Guo
2025-12-08 19:18:10 +08:00
committed by GitHub
parent 73b91ed763
commit 141b5c1778

View File

@ -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)
})