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

SQLQueryFactory doesn't release connection / leak #1476

Closed
noguespi opened this issue Aug 13, 2015 · 0 comments
Closed

SQLQueryFactory doesn't release connection / leak #1476

noguespi opened this issue Aug 13, 2015 · 0 comments
Milestone

Comments

@noguespi
Copy link

@noguespi noguespi commented Aug 13, 2015

The SQLQueryFactory is cleaner than new SQLQuery, however, it doesn't close the connection

        SQLQueryFactory qf = new SQLQueryFactory(sqlConf, ds);
        for (int i = 0; i < 20; i++) {
            qf.selectOne().from(TABLE).fetch();
        }

and you have 20 connections open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.