提交 21563c94 authored 作者: Thomas Mueller's avatar Thomas Mueller

recover from out of memory errors

上级 c182e960
...@@ -200,7 +200,14 @@ public abstract class Command implements CommandInterface { ...@@ -200,7 +200,14 @@ public abstract class Command implements CommandInterface {
session.setCurrentCommand(this, startTime); session.setCurrentCommand(this, startTime);
try { try {
database.checkPowerOff(); database.checkPowerOff();
return update(); int test;
try {
return update();
} catch (OutOfMemoryError e) {
throw Message.convert(e);
} catch (Throwable e) {
throw Message.convert(e);
}
} catch (SQLException e) { } catch (SQLException e) {
database.exceptionThrown(e, sql); database.exceptionThrown(e, sql);
database.checkPowerOff(); database.checkPowerOff();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论