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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.5
    • Component/s: Other
    • Labels:
      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

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            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.