BTM
  1. BTM
  2. BTM-126

Equality/wrapping of PreparedStatement

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Testing Hibernate 4.3 with Bitronix 2.1.3, it has some new JDBC handling code.

      Connection#prepareStatement() returns a proxied JdbcUncachedPreparedStatementHandle, which wraps the original JDBC driver's PreparedStatement implementation.

      When calling getStatement() on a ResultSet, you get the original PreparedStatement, not wrapped by Bitronix.

      Hibernate 4.3 now relies on these two being equal(), I guess JdbcUncachedPreparedStatementHandle doesn't override this properly.

        Activity

        Hide
        Christian Bauer added a comment -

        Hibernate 4.3 code was now changed to always re-use the original wrapped PreapredStatement and not to rely on ResultSet#getStatement. Bitronix wasn't the only problematic environment.

        Show
        Christian Bauer added a comment - Hibernate 4.3 code was now changed to always re-use the original wrapped PreapredStatement and not to rely on ResultSet#getStatement. Bitronix wasn't the only problematic environment.
        Hide
        Ludovic Orban added a comment - - edited

        I believe Brett committed a fix for the problem anyway since Hibernate working around it or not, it's still a bug.

        Could you please copy the link to the Hibernate issue for future reference?

        Thanks!

        Show
        Ludovic Orban added a comment - - edited I believe Brett committed a fix for the problem anyway since Hibernate working around it or not, it's still a bug. Could you please copy the link to the Hibernate issue for future reference? Thanks!
        Show
        Christian Bauer added a comment - https://hibernate.atlassian.net/browse/HHH-7984

          People

          • Assignee:
            Ludovic Orban
            Reporter:
            Christian Bauer
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: