Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-315

can't connect to server when character_set_server is set to UTF16

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.3.3, 3.0.3
    • 3.0.4, 2.3.6
    • None
    • None
    • Linux

    Description

      When I am trying to connect to a MySQL server with character_set_server set to utf16, it returns error:
      *Variable 'character_set_client' can't be set to the value of 'utf16'. *

      I am able to connect to the server using MySQL and MariaDB(10.2.10-MariaDB) command line tools.

      Attachments

        Activity

          Tried with MySQL #[Connector/C 6.1.11 and I am able to connect to the MySQL server. The issue is reproducible only with MariaDB C connector.

          sandhyasriraj Sandhya Sriraj added a comment - Tried with MySQL #[Connector/C 6.1.11 and I am able to connect to the MySQL server. The issue is reproducible only with MariaDB C connector.
          georg Georg Richter added a comment - - edited

          Hi Sandhya,

          thanks for the update. Looks like you forgot to attach the source of your test case.

          georg Georg Richter added a comment - - edited Hi Sandhya, thanks for the update. Looks like you forgot to attach the source of your test case.

          mysql.cpp

          Sample program attached. To reproduce this issue set character_set_server set to utf16 in my.cnf.

          sandhyasriraj Sandhya Sriraj added a comment - mysql.cpp Sample program attached. To reproduce this issue set character_set_server set to utf16 in my.cnf.
          sandhyasriraj Sandhya Sriraj added a comment - - edited

          Any update on this issue?
          Please reopen this issue as it is not solved yet.

          sandhyasriraj Sandhya Sriraj added a comment - - edited Any update on this issue? Please reopen this issue as it is not solved yet.
          georg Georg Richter added a comment -

          Fixed in Connector/C 2.3.6 and 3.0.4

          georg Georg Richter added a comment - Fixed in Connector/C 2.3.6 and 3.0.4

          People

            georg Georg Richter
            sandhyasriraj Sandhya Sriraj
            Votes:
            1 Vote for this issue
            Watchers:
            5 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.