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

LIKE is not collation aware

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.1
    • Component/s: ExeMgr, PrimProc
    • Labels:
      None
    • Sprint:
      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

              Assignee:
              drrtuy Roman
              Reporter:
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration