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

If the database was already closed using SHUTDOWN IMMEDIATELY, closing a second…

If the database was already closed using SHUTDOWN IMMEDIATELY, closing a second connection could throw a NullPointerException if there was a local temporary table.
上级 769fb652
...@@ -558,6 +558,7 @@ public class Session extends SessionWithState { ...@@ -558,6 +558,7 @@ public class Session extends SessionWithState {
public void close() throws SQLException { public void close() throws SQLException {
if (!closed) { if (!closed) {
try { try {
database.checkPowerOff();
cleanTempTables(true); cleanTempTables(true);
database.removeSession(this); database.removeSession(this);
} finally { } finally {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论