Vladimir Kachanov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5dd40d6...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-13741?atlOrigin=eyJpIjoiYjg4Zm...
) HHH-13741 (
https://hibernate.atlassian.net/browse/HHH-13741?atlOrigin=eyJpIjoiYjg4Zm...
) LOG_SLOW_QUERY parameter doesn't log query (
https://hibernate.atlassian.net/browse/HHH-13741?atlOrigin=eyJpIjoiYjg4Zm...
)
Change By: Vladimir Kachanov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5dd40d6...
)
I used parameter AvailableSettings.LOG_SLOW_QUERY to log slow query. But instead of query
it logged only PreparedStatement.toString(). As result when I use Oracle JDBC Driver with
HicariCP HikariCP , there is no query in logged statement:
org.hibernate.SQL_SLOW : SlowQuery: 80 milliseconds. SQL:
'HikariProxyPreparedStatement@1363216410 wrapping
oracle.jdbc.driver.OraclePreparedStatementWrapper@279aac5f'
(
https://hibernate.atlassian.net/browse/HHH-13741#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13741#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:090dddf )