提交 1e3ff21d authored 作者: Thomas Mueller's avatar Thomas Mueller

New system property h2.analyzeAuto.

上级 b707cd6b
......@@ -73,6 +73,10 @@ public class Analyze extends DefineCommand {
if (!session.getUser().hasRight(table, Right.SELECT)) {
return;
}
if (session.getCancel() != 0) {
// if the connection is closed and there is something to undo
return;
}
Database db = session.getDatabase();
StatementBuilder buff = new StatementBuilder("SELECT ");
Column[] columns = table.getColumns();
......
......@@ -870,6 +870,15 @@ public class Session extends SessionWithState implements SessionFactory {
}
}
/**
* Get the cancel time.
*
* @return the time or 0 if not set
*/
public long getCancel() {
return cancelAt;
}
public Command getCurrentCommand() {
return currentCommand;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论