We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
每使用Anima.atomic一次,就泄露一个连接,跟踪了一下代码,发现在AnimaQuery中,方法 private Connection getConn() { Connection connection = localConnection.get(); return ifNotNullReturn(connection, connection, this.getSql2o().open()); } ifNotNullReturn(connection, connection, this.getSql2o().open()); 这儿无论connection是否为空,都回去调用this.getSql2o().open()打开新的连接,我把这儿改成 if (connection!= null) { return connection; } else{ return this.getSql2o().open(); } 不知道我的理解是否正确
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
hellokaton#49
5f91958
No branches or pull requests
每使用Anima.atomic一次,就泄露一个连接,跟踪了一下代码,发现在AnimaQuery中,方法
private Connection getConn() {
Connection connection = localConnection.get();
return ifNotNullReturn(connection, connection, this.getSql2o().open());
}
ifNotNullReturn(connection, connection, this.getSql2o().open()); 这儿无论connection是否为空,都回去调用this.getSql2o().open()打开新的连接,我把这儿改成
if (connection!= null) {
return connection;
} else{
return this.getSql2o().open();
}
不知道我的理解是否正确
The text was updated successfully, but these errors were encountered: