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

JdbcRowSet does not convert getBytes to UTF8 like the MySQL connector

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 1.1.7
    • N/A
    • Other
    • None
    • Server set to Latin1 character set

    Description

      The Mariadb connector and the MySQL JDBC connector return different results for JdbcRowSet.getBytes(column). The MySQL connector converts the bytes to UTF-8 and the Mariadb connector does not. I had to add

      bytes = new String(bytes, "UTF-8").getBytes();

      to get the same results.

      The JdbcRs.getCharacterStream(column) does convert the results to UTF-8.

      Attachments

        Activity

          People

            georg Georg Richter
            gsbabcock Greg Babcock
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.