This commit is contained in:
@@ -833,9 +833,9 @@ public final class DataJDBCSource implements DataSource {
|
|||||||
final Serializable id = info.getPrimary().get(value);
|
final Serializable id = info.getPrimary().get(value);
|
||||||
final List<Attribute<T, Serializable>> attrs = new ArrayList<>();
|
final List<Attribute<T, Serializable>> attrs = new ArrayList<>();
|
||||||
for (String col : columns) {
|
for (String col : columns) {
|
||||||
if (setsql.length() > 0) setsql.append(',');
|
|
||||||
Attribute<T, Serializable> attr = info.getUpdateAttribute(col);
|
Attribute<T, Serializable> attr = info.getUpdateAttribute(col);
|
||||||
if (attr == null) continue;
|
if (attr == null) continue;
|
||||||
|
if (setsql.length() > 0) setsql.append(',');
|
||||||
setsql.append(info.getSQLColumn(col)).append(" = ").append(formatToString(attr.get(value)));
|
setsql.append(info.getSQLColumn(col)).append(" = ").append(formatToString(attr.get(value)));
|
||||||
}
|
}
|
||||||
String sql = "UPDATE " + info.getTable() + " SET " + setsql
|
String sql = "UPDATE " + info.getTable() + " SET " + setsql
|
||||||
|
|||||||
Reference in New Issue
Block a user