From f6165b2dc2765be835dd3a83315132fcfbab56eb Mon Sep 17 00:00:00 2001 From: DinoLai Date: Fri, 17 Nov 2017 23:19:33 +0800 Subject: [PATCH] fix typo in crud.md: add lost double quotation --- documents/crud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/crud.md b/documents/crud.md index e9db78b8..07c02be0 100644 --- a/documents/crud.md +++ b/documents/crud.md @@ -665,7 +665,7 @@ func (user *User) BeforeSave(scope *gorm.Scope) (err error) { ```go // Add extra SQL option for updating SQL -db.Model(&user).Set("gorm:update_option", "OPTION (OPTIMIZE FOR UNKNOWN)").Update("name, "hello") +db.Model(&user).Set("gorm:update_option", "OPTION (OPTIMIZE FOR UNKNOWN)").Update("name", "hello") //// UPDATE users SET name='hello', updated_at = '2013-11-17 21:34:10' WHERE id=111 OPTION (OPTIMIZE FOR UNKNOWN); ```