提交 61aab109 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix stop condition in a loop in Insert.prepareUpdateCondition()

上级 cba7f2c8
......@@ -435,11 +435,12 @@ public class Insert extends Prepared implements ResultTarget {
for (int i = 0; i < columns.length; i++) {
if (expr.getColumnName().equals(columns[i].getName())) {
if (condition == null) {
condition = new Comparison(session, Comparison.EQUAL, expr, row[i++]);
condition = new Comparison(session, Comparison.EQUAL, expr, row[i]);
} else {
condition = new ConditionAndOr(ConditionAndOr.AND, condition,
new Comparison(session, Comparison.EQUAL, expr, row[i++]));
new Comparison(session, Comparison.EQUAL, expr, row[i]));
}
break;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论