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

Illegal mix of collations latin1_swedish_ci and utf8mb4_general_ci

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.1.35
    • N/A
    • Character Sets
    • None
    • Debian

    Description

      latin1 is a subset of utf8 so the comparison is well defined.

      CREATE TABLE `t` (
        `a` varchar(255) CHARACTER SET latin1 NOT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
       
      SELECT * FROM t WHERE a = 'ā';
       
      // ERROR 1267 (HY000): Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            XTF Olaf van der Spek
            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.