[hibernate-issues] [JIRA] (HHH-13741) LOG_SLOW_QUERY parameter doesn't log query

Vladimir Kachanov (JIRA) jira at hibernate.atlassian.net
Sun Mar 1 05:14:19 EST 2020


Vladimir Kachanov ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5dd40d6523cbe90ee7b428c2 ) *updated* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5YTFhNGUwOGJiODk3ZWMzNWYxNDUyMDUiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-13741?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5YTFhNGUwOGJiODk3ZWMzNWYxNDUyMDUiLCJwIjoiaiJ9 ) HHH-13741 ( https://hibernate.atlassian.net/browse/HHH-13741?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5YTFhNGUwOGJiODk3ZWMzNWYxNDUyMDUiLCJwIjoiaiJ9 ) LOG_SLOW_QUERY parameter doesn't log query ( https://hibernate.atlassian.net/browse/HHH-13741?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5YTFhNGUwOGJiODk3ZWMzNWYxNDUyMDUiLCJwIjoiaiJ9 )

Change By: Vladimir Kachanov ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5dd40d6523cbe90ee7b428c2 )

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 at 1363216410 wrapping oracle.jdbc.driver.OraclePreparedStatementWrapper at 279aac5f'

( https://hibernate.atlassian.net/browse/HHH-13741#add-comment?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5YTFhNGUwOGJiODk3ZWMzNWYxNDUyMDUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13741#add-comment?atlOrigin=eyJpIjoiYjg4ZmQxNTQ5YTFhNGUwOGJiODk3ZWMzNWYxNDUyMDUiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:090dddf )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200301/aadd8293/attachment.html 


More information about the hibernate-issues mailing list