Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4498

LIKE is not collation aware

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 5.6.1
    • ExeMgr, PrimProc
    • None
    • 2021-2, 2021-3, 2021-4, 2021-5

    Description

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a CHAR(3) CHARACTER SET utf8) ENGINE=ColumnStore;
      INSERT INTO t1 VALUES ('A'),('a');
      SELECT * FROM t1 WHERE a LIKE 'a';
      

      +------+
      | a    |
      +------+
      | a    |
      +------+
      

      Notice, it returns only one row ignoring the fact that the collations is utf8_general_ci, which is case insensitive.

      It should return two rows like MyISAM does:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a CHAR(3) CHARACTER SET utf8) ENGINE=MyISAM;
      INSERT INTO t1 VALUES ('A'),('a');
      SELECT * FROM t1 WHERE a LIKE 'a';
      

      +------+
      | a    |
      +------+
      | A    |
      | a    |
      +------+
      

      Attachments

        Issue Links

          Activity

            People

              drrtuy Roman
              bar Alexander Barkov
              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.