Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1009

Embedded ResultSet.getStatement() does not return the Statement object that created it for a connection returned from EmbeddedXADataSource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.3.1, 10.2.1.6
    • Fix Version/s: 10.1.3.1, 10.2.1.6
    • Component/s: JDBC
    • Labels:
      None

      Description

      May also be the case for connections obtained from EmbeddedConnectionPoolDataSource.

      ResultSet.getStatement() is returning the undetlying "physical" java.sql.Statement object, not the brokered object.

      Bug as applications can then get at the underlying "physical" connection and thus continue to
      use a connection that may have been assigned to someone else. Causes FAIL messages in the
      new jdbcapi/XATest, real checks should be added in checkDataSource to ensure all the possible
      connection objects are checked.

        Attachments

          Activity

            People

            • Assignee:
              djd Daniel John Debrunner
              Reporter:
              djd Daniel John Debrunner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: