提交 a3b65519 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 9cf51ac6
...@@ -8,7 +8,6 @@ package org.h2.command.dml; ...@@ -8,7 +8,6 @@ package org.h2.command.dml;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import org.h2.api.Trigger; import org.h2.api.Trigger;
import org.h2.command.Command; import org.h2.command.Command;
...@@ -87,9 +86,9 @@ public class Insert extends Prepared implements ResultTarget { ...@@ -87,9 +86,9 @@ public class Insert extends Prepared implements ResultTarget {
* @param expression the expression * @param expression the expression
*/ */
public void addAssignmentForDuplicate(Column column, Expression expression) { public void addAssignmentForDuplicate(Column column, Expression expression) {
if (duplicateKeyAssignmentMap == null) { if (duplicateKeyAssignmentMap == null) {
duplicateKeyAssignmentMap = New.hashMap(); duplicateKeyAssignmentMap = New.hashMap();
} }
if (duplicateKeyAssignmentMap.containsKey(column)) { if (duplicateKeyAssignmentMap.containsKey(column)) {
throw DbException.get(ErrorCode.DUPLICATE_COLUMN_NAME_1, column.getName()); throw DbException.get(ErrorCode.DUPLICATE_COLUMN_NAME_1, column.getName());
} }
...@@ -359,9 +358,8 @@ public class Insert extends Prepared implements ResultTarget { ...@@ -359,9 +358,8 @@ public class Insert extends Prepared implements ResultTarget {
if (indexColumn.getName() == insertColumn.getName()) { if (indexColumn.getName() == insertColumn.getName()) {
foundIndex = index; foundIndex = index;
break; break;
} else { }
foundIndex = null; foundIndex = null;
}
} }
if (foundIndex == null) { if (foundIndex == null) {
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论