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

Refactor case folding data types in Unicode collations

    XMLWordPrintable

Details

    Description

      This task is a continuation for MDEV-30695.
      The intent is to remove joined tables storing casefolding+weight data using these C data types:

      typedef struct unicase_info_char_st
      {
        uint32 toupper;
        uint32 tolower;
        uint32 sort;
      } MY_UNICASE_CHARACTER;
       
      struct unicase_info_st
      {
        my_wc_t maxchar;
        MY_UNICASE_CHARACTER **page;
      };
      

      and replace them to separate casefolding tables:

      typedef struct casefold_info_char_t
      {
        uint32 toupper;
        uint32 tolower;
      } MY_CASEFOLD_CHARACTER;
       
      struct casefold_info_st
      {
        my_wc_t maxchar;
        MY_CASEFOLD_CHARACTER **page;
      };
      

      and separate weight tables:

        const uint16 * const *simple_weight; /* For general_ci-alike collations */
      

      The intent for this refactoring is explained in MDEV-30695.

      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.