xormplus 9 vuotta sitten
vanhempi
commit
2d2177b855
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
 		}