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

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

    XMLWordPrintable

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

          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.