hibernate-orm icon indicating copy to clipboard operation
hibernate-orm copied to clipboard

HHH-13741 : Logging SQL query when using LOG_SLOW_QUERY

Open jai-yadav opened this issue 2 years ago • 2 comments

https://hibernate.atlassian.net/browse/HHH-13741

jai-yadav avatar May 28 '22 15:05 jai-yadav

Unfortunately we no longer support 5.4 and therefore no longer do releases of it. I can apply the PR as it applies cleanly, but you'd have to run a custom build.

Have you considered migrating to 5.6 or 6.0, which are the currently supported versions?

sebersole avatar May 29 '22 13:05 sebersole

@sebersole We are in process of migrating to 6.0 but it's taking it's time. It would be great if you can approve this PR and I'll try to incorporate the changes to 5.6 and 6.0 as well. Thanks.

jai-yadav avatar May 30 '22 15:05 jai-yadav

I upgraded to spring boot 2.7.4 which brings hibernate core 5.6.11 and I see

org.hibernate.SQL_SLOW                   : SlowQuery: 80 milliseconds. SQL: 'HikariProxyPreparedStatement@1363216410 wrapping oracle.jdbc.driver.OraclePreparedStatementWrapper@279aac5f'

which version of hibernate should I use ? or are there any work around for this issue ?

put more details and reproducer here

Thanks

ozkanpakdil avatar Oct 04 '22 16:10 ozkanpakdil

https://github.com/hibernate/hibernate-orm/pull/7030

herisson-88 avatar Jul 20 '23 08:07 herisson-88