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

Statement.getConnection() threw an exception if the connection was already closed.

上级 c7ab9de0
...@@ -232,14 +232,9 @@ public class JdbcStatement extends TraceObject implements Statement { ...@@ -232,14 +232,9 @@ public class JdbcStatement extends TraceObject implements Statement {
* *
* @return the connection * @return the connection
*/ */
public Connection getConnection() throws SQLException { public Connection getConnection() {
try { debugCodeCall("getConnection");
debugCodeCall("getConnection"); return conn;
checkClosed();
return conn;
} catch (Exception e) {
throw logAndConvert(e);
}
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论