提交 44ea3a1c authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Use ArrayList.set() instead of remove() and add()

上级 a55e6e50
...@@ -343,8 +343,7 @@ public class AlterTableAlterColumn extends SchemaCommand { ...@@ -343,8 +343,7 @@ public class AlterTableAlterColumn extends SchemaCommand {
} }
} else if (type == CommandInterface.ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPE) { } else if (type == CommandInterface.ALTER_TABLE_ALTER_COLUMN_CHANGE_TYPE) {
int position = oldColumn.getColumnId(); int position = oldColumn.getColumnId();
newColumns.remove(position); newColumns.set(position, newColumn);
newColumns.add(position, newColumn);
} }
// create a table object in order to get the SQL statement // create a table object in order to get the SQL statement
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论