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

Connector misses Columns when using a turkish locale

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2, 1.7.2
    • metadata
    • None

    Description

      Introduction:
      Some languages have special casing rules, most notoriously the turkish language.
      Example:

      "ID".loLowerCase(); // "id"
      Locale.setDefault(new Locale("tr")) // turkish client
      "ID".toLowerCase(); // "ıd" note the dottles i
      

      To get language independent casing one has to use something like this
      "ID".toLowerCase(Locale.ROOT)

      Connector Issue:
      ColoumnNameMap#getIndex uses getLowerCase().
      That means turkish people will not be able to access Coloumns like "ID", because mariaDb incorrectly maps them internally to "ıd" instead of "id".

      Workarounds: Dont use the letter i in your coloums or don't have turkish customers. So actually not really.

      Sugested fix: replace all Usages of toLowerCase() with toLowerCase(Locale.Root). Same technique applies to toUpperCase()

      Attachments

        Activity

          Gösen Thorsten Goetzke created issue -
          diego dupin Diego Dupin made changes -
          Field Original Value New Value
          Fix Version/s 2.2.2 [ 22920 ]
          Fix Version/s 1.7.2 [ 22921 ]
          diego dupin Diego Dupin added a comment -

          right ! this has been added in next corrective release

          diego dupin Diego Dupin added a comment - right ! this has been added in next corrective release
          diego dupin Diego Dupin made changes -
          issue.field.resolutiondate 2018-01-31 14:31:54.0 2018-01-31 14:31:54.105
          diego dupin Diego Dupin made changes -
          Component/s metadata [ 14002 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          diego dupin Diego Dupin made changes -
          Summary Connector misses Colomns when using a turkish locale Connector misses Columns when using a turkish locale
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 85197 ] MariaDB v4 [ 135049 ]

          People

            diego dupin Diego Dupin
            Gösen Thorsten Goetzke
            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.