提交 69eacaed authored 作者: Thomas Mueller's avatar Thomas Mueller

Statement.cancel() could cause a NullPointerException.

上级 a636e6f9
...@@ -18,7 +18,9 @@ Change Log ...@@ -18,7 +18,9 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>In some cases (specially when using a small cache size or a large database over 1 GB) for some <ul><li>Statement.cancel() did not work when running RUNSCRIPT and SCRIPT.
</li><li>Statement.cancel() could cause a NullPointerException.
</li><li>In some cases (specially when using a small cache size or a large database over 1 GB) for some
operations like ALTER TABLE the data was written before the transaction log entries, which could cause a corrupt database operations like ALTER TABLE the data was written before the transaction log entries, which could cause a corrupt database
if the process was killed during the ALTER TABLE operation. Thanks a lot to Victor Pyankov for helping solve this problem! if the process was killed during the ALTER TABLE operation. Thanks a lot to Victor Pyankov for helping solve this problem!
</li><li>The Recover tool could throw a ArrayIndexOutOfBoundsException </li><li>The Recover tool could throw a ArrayIndexOutOfBoundsException
......
...@@ -1360,7 +1360,9 @@ public class JdbcConnection extends TraceObject implements Connection { ...@@ -1360,7 +1360,9 @@ public class JdbcConnection extends TraceObject implements Connection {
* Called after executing a command that could have written something. * Called after executing a command that could have written something.
*/ */
protected void afterWriting() { protected void afterWriting() {
session.afterWriting(); if (session != null) {
session.afterWriting();
}
} }
String getURL() throws SQLException { String getURL() throws SQLException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论