浏览代码

bug fixed

xormplus 9 年之前
父节点
当前提交
2d2177b855
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      statement.go

+ 1 - 1
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
 		}