提交 413aeb82 authored 作者: Thomas Mueller's avatar Thomas Mueller

When using the built-in connection pool, after calling the "shutdown" SQL…

When using the built-in connection pool, after calling the "shutdown" SQL statement, a warning was written to the .trace.db file about an unclosed connection.
上级 2d0fcdd6
......@@ -18,7 +18,10 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>Improved compatibility with the Java 7 FileSystem abstraction.
<ul><li>When using the built-in connection pool, after calling the "shutdown" SQL statement,
a warning was written to the .trace.db file about an unclosed connection.
</li><li>Improved compatibility for "fetch first / next row(s)". Thanks a lot to litailang for the patch!
</li><li>Improved compatibility with the Java 7 FileSystem abstraction.
</li></ul>
<h2>Version 1.3.160 (2011-09-11)</h2>
......
......@@ -453,8 +453,12 @@ public class JdbcXAConnection extends TraceObject implements XAConnection, XARes
public synchronized void close() throws SQLException {
if (!isClosed) {
rollback();
setAutoCommit(true);
try {
rollback();
setAutoCommit(true);
} catch (SQLException e) {
// ignore
}
closedHandle();
isClosed = true;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论