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

          bar Alexander Barkov created issue -
          bar Alexander Barkov made changes -
          Field Original Value New Value
          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 mode.
          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.
          bar Alexander Barkov made changes -
          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.
          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 of characters which have implicit weights (i.e. those not listed on DUCET).
          bar Alexander Barkov made changes -
          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 of characters which have implicit weights (i.e. those not listed on DUCET).
          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).

          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;
          bar Alexander Barkov made changes -
          Affects Version/s 10.1 [ 16100 ]
          Affects Version/s 10.2 [ 14601 ]
          bar Alexander Barkov made changes -
          Fix Version/s 10.1 [ 16100 ]
          Fix Version/s 10.0 [ 16000 ]

          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
          bar Alexander Barkov made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          bar Alexander Barkov made changes -
          Fix Version/s 10.1.15 [ 22018 ]
          Fix Version/s 10.1 [ 16100 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 71229 ] MariaDB v4 [ 149522 ]

          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.