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

Add a data type my_repertoire_t

    XMLWordPrintable

Details

    Description

      As of version 10.5.4, we use the uint data type to store flags like MY_REPERTOIRE_ASCII, MY_REPERTOIRE_EXTENDED, etc.

      For stricter data type control, let's add a separate enum-based data type as follows:

      typedef enum enum_repertoire_t
      {
        MY_REPERTOIRE_NONE=        0,
        MY_REPERTOIRE_ASCII=       1, /* Pure ASCII            U+0000..U+007F */
        MY_REPERTOIRE_EXTENDED=    2, /* Extended characters:  U+0080..U+FFFF */
        MY_REPERTOIRE_UNICODE30=   3  /* ASCII | EXTENDED:     U+0000..U+FFFF */
      } my_repertoire_t;
      

      and fix the related classes and routines to use the new data type.

      Attachments

        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.