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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
    • Fix Version/s: 10.9.0
    • Component/s: Character Sets
    • Labels:
      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

              Assignee:
              bar Alexander Barkov
              Reporter:
              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.