Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3204

Potentially unclosed resources in JdbcExplorer#evalQueryMetadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.3.0
    • None
    • None

    Description

                  Connection con = SqlUtil.getConnection(dbconf);
                  DatabaseMetaData dbmd = con.getMetaData();
                  ResultSet rs = dbmd.getColumns(null, tmpDatabase, tmpView, null);
      

      con and rs should be closed upon return even if there is exception.

      Attachments

        Activity

          People

            liukaige Kaige Liu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: