Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-437

Latest ODBC driver returns NUL characters in strings with accents (!)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4
    • General
    • None
    • Windows

    Description

      When using MariaDB ODBC connector 3.2.3, strings values are returned with apparently random NUL characters (i.e. '\0').

      This issue occurs when string contains accents (french accents : éèàç etc...). There is no problem with older drivers :

      • MariaDB ODBC 3.1.19 Driver works fine
      • MySQL ODBC 5.1.8 Driver works fine

      I attached a sample JSCRIPT to reproduce the bug : run it with CSCRIPT.EXE on a Windows host:

      SET MYSQL_PASSWORD=[ROOT_PASSWORD]
      CSCRIPT.EXE mariadb_nul_char_bug.js >mariadb_nul_char_bug.log
      

      You need to redirect the script output to a log file in order to see the string difference (NUL characters are not displayed in a Windows terminal).

      The test script usually appends NUL characters at the end of string, but in our real application we got NUL characters randomly within strings (not always trailing NUL characters).

      E.

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            edot06 Emmanuel KARTMANN
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.