Skip to content

Commit 798f638

Browse files
committed
Update xsql README.md
1 parent b9bd6d5 commit 798f638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xsql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Update specific columns by map
171171
data := map[string]interface{}{
172172
"foo": "test",
173173
}
174-
err := DB.Model(context.Background(), &Test{}).Update(data, "id = ?", 8).Error
174+
err := DB.Model(&Test{}).Update(context.Background(), data, "id = ?", 8).Error
175175
if err != nil {
176176
log.Fatal(err)
177177
}

0 commit comments

Comments
 (0)