Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-969

org.mariadb.jdbc.ClientPreparedStatement is missing a toString implementation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.4
    • 3.0.5
    • Other
    • 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"=?

      {1: 'some_value', 2: 'some_id'}

      '

      // 3.0.4
      SlowQuery: 11 milliseconds. SQL: 'HikariProxyPreparedStatement@71013107 wrapping org.mariadb.jdbc.ClientPreparedStatement@4029ae9a'

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            Florens Florens Pauwels
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.