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

Wrong collation of `CAST(.. AS CHAR COLLATE DEFAULT)`

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
    • 10.9.0
    • Character Sets
    • None

    Description

      SET NAMES utf8mb3 COLLATE utf8mb3_bin;
      SELECT COLLATION(CAST('a' AS CHAR COLLATE DEFAULT));
      

      +----------------------------------------------+
      | COLLATION(CAST('a' AS CHAR COLLATE DEFAULT)) |
      +----------------------------------------------+
      | utf8mb3_bin                                  |
      +----------------------------------------------+
      

      Looks wrong. The expected behavior is to return default collation for utf8mb3, which is utf8mb3_general_ci.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.