Skip to content

SQLQueryFactory doesn't release connection / leak #1476

Closed
@noguespi

Description

@noguespi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions