Browse Source

bug fixed

xormplus 9 năm trước cách đây
mục cha
commit
2d2177b855
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 		}