提交 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 {
public void close() throws SQLException {
if (!closed) {
try {
database.checkPowerOff();
cleanTempTables(true);
database.removeSession(this);
} finally {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论