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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.3.1, 10.2.1.6
    • 10.1.3.1, 10.2.1.6
    • JDBC
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: