Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7366

SELECT 'a' = BINARY 'A' returns 1 (utf8 charset, utf8_unicode_ci collation)

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.14, 10.0.15
    • 10.0.16
    • Character Sets
    • None

    Description

      In MariaDB 10.0.14 and higher, the following expressions return inconsistent values.

      SET NAMES utf8 COLLATE utf8_unicode_ci; 
      SELECT 'a' = BINARY 'A'; /* yields 1, expected 0 */
      SELECT BINARY 'A' = 'a'; /* yields 0, expected 0 */

      The problem occurs when 'a' has a case insensitive utf8 collation.
      MariaDB 10.0.13 does yield 0 in both cases.

      Attachments

        Activity

          Pim Pim Broekhof created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Fix Version/s 10.0 [ 16000 ]
          Assignee Alexander Barkov [ bar ]
          bar Alexander Barkov made changes -
          Fix Version/s 10.0.16 [ 17900 ]
          Fix Version/s 10.0 [ 16000 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 59063 ] MariaDB v3 [ 62814 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 62814 ] MariaDB v4 [ 148651 ]

          People

            bar Alexander Barkov
            Pim Pim Broekhof
            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.