提交 f9807349 authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

AlterIndexRename: remove redundant oldIndex field

上级 8f8fa571
......@@ -23,7 +23,6 @@ public class AlterIndexRename extends DefineCommand {
private boolean ifExists;
private Schema oldSchema;
private String oldIndexName;
private Index oldIndex;
private String newIndexName;
public AlterIndexRename(Session session) {
......@@ -50,7 +49,7 @@ public class AlterIndexRename extends DefineCommand {
public int update() {
session.commit(true);
Database db = session.getDatabase();
oldIndex = oldSchema.findIndex(session, oldIndexName);
Index oldIndex = oldSchema.findIndex(session, oldIndexName);
if (oldIndex == null) {
if (!ifExists) {
throw DbException.get(ErrorCode.INDEX_NOT_FOUND_1,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论