You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the ResultSet returned by OpenTelemetryPreparedStatement.executeQuery(String) is not wrapped. It means that when one calls then ResultSet.getStatement() we get the wrapped statement instead of the OpenTelemetryPreparedStatement itself.
This can be problematic when we expect to get the same object, for example when statement are used as a Map's key and we want to find back some information.
Describe the bug
Hi,
I noticed that the
ResultSet
returned byOpenTelemetryPreparedStatement.executeQuery(String)
is not wrapped. It means that when one calls thenResultSet.getStatement()
we get the wrapped statement instead of theOpenTelemetryPreparedStatement
itself.This can be problematic when we expect to get the same object, for example when statement are used as a Map's key and we want to find back some information.
One example of the problem this creates can be seen here: https://hibernate.atlassian.net/browse/HHH-19280
Steps to reproduce
N/A
Expected behavior
ResultSet.getStatement()
returns the same object that created theResultSet
Actual behavior
ResultSet.getStatement()
does not return the same object that created theResultSet
Javaagent or library instrumentation version
2.14.0-alpha
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: