This commit is contained in:
地平线
2015-06-15 14:20:37 +08:00
parent 26fb068677
commit 1695d8045a

View File

@@ -837,6 +837,7 @@ public final class DataJDBCSource implements DataSource {
if (attr == null) continue;
if (setsql.length() > 0) setsql.append(',');
setsql.append(info.getSQLColumn(col)).append(" = ").append(formatToString(attr.get(value)));
attrs.add(attr);
}
String sql = "UPDATE " + info.getTable() + " SET " + setsql
+ " WHERE " + info.getPrimarySQLColumn() + " = " + formatToString(id);