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

'å' equals '[' in the latin1_swedish_ci collation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.5, 10.1, 10.2, 10.3, 10.4
    • Fix Version/s: 10.5
    • Component/s: None
    • Labels:
    • Environment:
      Debian 10

      Description

      The following code outputs both rows. I think it should only output the one starting with 'å'. (Tested on 10.3.18)

      CREATE TABLE test (
        name VARCHAR(100)
      ) CHARACTER SET latin1 COLLATE latin1_swedish_ci;
       
      INSERT INTO test(name) VALUES('[hello world]');
      INSERT INTO test(name) VALUES('ålesund');
       
      SELECT * FROM test WHERE name LIKE 'å%';
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bar Alexander Barkov
              Reporter:
              Marek Marek Gibney
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: