Skip to content

Support JPA Logging with a proper toString function in SQLServerStatement #2086

@suchwerk

Description

@suchwerk

Hibernate JPA has a slow query logging. The preparedStatment which is slow is logged. With mssql-jdbc this is useless due the lack of a proper toString function for prepared statements.

2023-02-27 14:35:49 INFO  [org.hib.SQL_SLOW] f33ac0603c4f (executor-thread-2075) SlowQuery: 91 milliseconds. SQL: 'wrapped[ SQLServerPreparedStatement:1643213 ]'

I would like to see the sql query in the quarkus logs.

SQLServerStatement.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementAn enhancement to the driver. Lower priority than bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions