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

LONGTEXT column with collation doesn't sort

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.5.4
    • 10.5.5
    • Character Sets, Optimizer
    • None
    • mariadb:10.5 docker image

    Description

      Creating a table with a LONGTEXT column with COLLATE doesn't sort properly.
      Using TEXT or dropping COLLATE working as expected. Also working on 10.4.

      CREATE TABLE t (
       c LONGTEXT COLLATE utf8mb4_swedish_ci
      );
      INSERT INTO t (c) VALUES ('A'),('Z'),('B'),('Y');
      SELECT * FROM t ORDER BY c ASC;
      

      Result:
      A,Z,B,Y

      Expected:
      A,B,Y,Z

      Attachments

        Activity

          People

            varun Varun Gupta (Inactive)
            todeveni Toni Viemerö
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.