Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't close connection by ResultSet.getStatement().getConnection().close() #491

Closed
chidaodezhongsheng opened this issue Dec 11, 2017 · 1 comment

Comments

@chidaodezhongsheng
Copy link
Contributor

2.0.0版本中,ResultSet反向持有的Statement和Statement反向持有的Connection无法正常close关掉。
源码如下:
AbstractResultSetAdapter中
public final Statement getStatement() throws SQLException {
return getResultSets().get(0).getStatement();
}
ShardingStatement中connection的getter方法

terrymanu added a commit that referenced this issue Dec 12, 2017
@terrymanu
Copy link
Member

fixed at 2.0.1

@terrymanu terrymanu self-assigned this Aug 8, 2018
@terrymanu terrymanu changed the title ResultSet.getStatement与Statement.getConnection Can't close connection by ResultSet.getStatement().getConnection().close() Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants