SQLQueryFactory doesn't release connection / leak #1476

Closed
serphacker opened this Issue Aug 13, 2015 · 0 comments

Projects

None yet

2 participants

@serphacker

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.

@timowest timowest added the progress label Aug 13, 2015
@Shredder121 Shredder121 closed this in #1478 Aug 20, 2015
@timowest timowest added this to the 4.0.4 milestone Aug 21, 2015
@timowest timowest removed the progress label Aug 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment