提交 34ba0fab authored 作者: Thomas Mueller's avatar Thomas Mueller

If opening a database failed with an out of memory exception, some files were not closed.

上级 41adefd3
...@@ -18,7 +18,8 @@ Change Log ...@@ -18,7 +18,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Optimizer: the expected runtime calculation was incorrect. The fixed calculation <ul><li>If opening a database failed with an out of memory exception, some files were not closed.
</li><li>Optimizer: the expected runtime calculation was incorrect. The fixed calculation
should give slightly better query plans when using many joins. should give slightly better query plans when using many joins.
</li><li>Improved exception message when connecting to a just started server fails. </li><li>Improved exception message when connecting to a just started server fails.
</li><li>Connection.isValid is a bit faster. </li><li>Connection.isValid is a bit faster.
......
...@@ -219,7 +219,7 @@ public class Database implements DataHandler { ...@@ -219,7 +219,7 @@ public class Database implements DataHandler {
// applets may not do that - ignore // applets may not do that - ignore
} }
} }
} catch (Exception e) { } catch (Throwable e) {
if (traceSystem != null) { if (traceSystem != null) {
if (e instanceof SQLException) { if (e instanceof SQLException) {
SQLException e2 = (SQLException) e; SQLException e2 = (SQLException) e;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论