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

A user defined collation utf8_confusables doesn't work

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0(EOL), 10.1(EOL), 10.2(EOL)
    • 10.1.15
    • Character Sets
    • None

    Description

      The collation defined in the attached Index.xml does not work.
      It crashes in DEBUG build and writes "Expansion too long" error to server error log in release build.

      I seems the problem happens because MariaDB collation customization currently has some limitation in shifting characters which have implicit weights (i.e. those not listed on DUCET).

      Attachments

        Activity

          How to repeat:

          • Put the attatched Index.xml into share/charsets
          • Run this query:

            SELECT _utf8'a' COLLATE utf8_confusables;
            

          bar Alexander Barkov added a comment - How to repeat: Put the attatched Index.xml into share/charsets Run this query: SELECT _utf8 'a' COLLATE utf8_confusables;

          The problem is the the collation customization code does not handle:

          • reset to a character with an implicit weight
          • shift of a character with an implicit weight
          bar Alexander Barkov added a comment - The problem is the the collation customization code does not handle: reset to a character with an implicit weight shift of a character with an implicit weight

          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.