https://bz.apache.org/bugzilla/show_bug.cgi?id=69206

            Bug ID: 69206
           Summary: jdbc-pool is not returning the proxied Statement from
                    a ResultSet
           Product: Tomcat Modules
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: jdbc-pool
          Assignee: dev@tomcat.apache.org
          Reporter: mcla...@apache.org
  Target Milestone: ---

The proxy ResultSet returned from any of the
Statement/PreparedStatement/CallableStatement implementations (executeQuery,
getResultSet, getGeneratedKeys) does not intercept the getStatement call in the
returned ResultSet, so the un-proxied statement is leaked to the caller.

This was discovered as part of https://hibernate.atlassian.net/browse/HHH-18325
which has highlighted that the 'equals' checks in the proxied Statement do not
take into account a call to perform a comparison with a non-proxied object
(e.g. performing
`proxiedStatement.equals(proxiedStatement.getResultSet().getStatement())`
throws an exception rather than returning a true/false value).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to