diff --git a/src/org/redkale/source/EntityInfo.java b/src/org/redkale/source/EntityInfo.java index 26974e85b..bbd37a674 100644 --- a/src/org/redkale/source/EntityInfo.java +++ b/src/org/redkale/source/EntityInfo.java @@ -215,7 +215,7 @@ public final class EntityInfo { this.insertSQL = "INSERT INTO " + table + "(" + insertsb + ") VALUES(" + insertsb2 + ")"; StringBuilder updatesb = new StringBuilder(); for (String col : updatecols) { - if (updatesb.length() > 0) updatesb.append(','); + if (updatesb.length() > 0) updatesb.append(", "); updatesb.append(col).append(" = ?"); } this.updateSQL = "UPDATE " + table + " SET " + updatesb + " WHERE " + getPrimarySQLColumn(null) + " = ?";