Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-7095

Implement Statement.closeOnCompletion() and fix related close() bugs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.0, 5.1.3
    • 5.2.0
    • core
    • None
    • Hide
      Phoenix now implements the Statement.closeOnCompletion() method.
      Phoenix now calls Statement.closeOnCompletion() when generating DatabaseMetaData resultSets.
      Phoenix now correctly calls close() on all Statements when a Connection is closed().
      Phoenix now closes the open ResultSet on a Statement when another statement is executed on the Statement object.

      Note that Phoenix previously did not comply with the JDBC specification, and allowed for multiple open ResultSets on the same Statement object.
      Application code that dependeded on this bug may need to be rewritten.
      Show
      Phoenix now implements the Statement.closeOnCompletion() method. Phoenix now calls Statement.closeOnCompletion() when generating DatabaseMetaData resultSets. Phoenix now correctly calls close() on all Statements when a Connection is closed(). Phoenix now closes the open ResultSet on a Statement when another statement is executed on the Statement object. Note that Phoenix previously did not comply with the JDBC specification, and allowed for multiple open ResultSets on the same Statement object. Application code that dependeded on this bug may need to be rewritten.

    Description

      Umbrella ticket, so that the three dependent tickets can be fixed in a single commit.

      Attachments

        Issue Links

          Activity

            People

              stoty Istvan Toth
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: