From 9952b97d0e7f460339468e0e1b723fad92cf31bf Mon Sep 17 00:00:00 2001 From: wentch <22250530@qq.com> Date: Tue, 15 Dec 2015 17:23:44 +0800 Subject: [PATCH] --- src/org/redkale/source/EntityInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + " = ?";