From 311abf25abd146a5ddaad5dc3241eba4b4b29284 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 23 Nov 2016 21:27:15 +0800 Subject: [PATCH] resolved #498 --- statement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.go b/statement.go index 02c9f598..f0d3fb50 100644 --- a/statement.go +++ b/statement.go @@ -258,7 +258,7 @@ func buildUpdates(engine *Engine, table *core.Table, bean interface{}, if col.IsDeleted && !unscoped { continue } - if use, ok := columnMap[col.Name]; ok && !use { + if use, ok := columnMap[strings.ToLower(col.Name)]; ok && !use { continue }