Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
3.0.4
-
None
Description
It seems like org.mariadb.jdbc.ClientPreparedStatement has lost its toString implementation in the 3.0.0 rewrite. In 2.7.5, org.mariadb.jdbc.ClientSidePreparedStatement does have a toString implementation returning the sql string.
This is useful for logging purposes, for example with Hibernate slow query logging:
// 2.7.5
SlowQuery: 11 milliseconds. SQL: 'HikariProxyPreparedStatement@71013107 wrapping prep7070: update "table_name" set "col_name"=? where "id"=?
'
// 3.0.4
SlowQuery: 11 milliseconds. SQL: 'HikariProxyPreparedStatement@71013107 wrapping org.mariadb.jdbc.ClientPreparedStatement@4029ae9a'