提交 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 {
*
* @return the connection
*/
public Connection getConnection() throws SQLException {
try {
debugCodeCall("getConnection");
checkClosed();
return conn;
} catch (Exception e) {
throw logAndConvert(e);
}
public Connection getConnection() {
debugCodeCall("getConnection");
return conn;
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论