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

inconsistent innodb full text max byte length/max char length

    XMLWordPrintable

Details

    Description

      git grep -C 1 HA_FT_MAXCHARLEN include/ft_global.h storage/innobase/include/fts0fts.h

      include/ft_global.h-#define HA_FT_MAXBYTELEN 254
      include/ft_global.h:#define HA_FT_MAXCHARLEN (HA_FT_MAXBYTELEN/3)
      include/ft_global.h-
      --
      storage/innobase/include/fts0fts.h-/** Maximum possible Fulltext word length in bytes (assuming mbmaxlen=4) */
      storage/innobase/include/fts0fts.h:#define FTS_MAX_WORD_LEN             (HA_FT_MAXCHARLEN * 4)
      storage/innobase/include/fts0fts.h-
      storage/innobase/include/fts0fts.h-/** Maximum possible Fulltext word length (in characters) */
      storage/innobase/include/fts0fts.h:#define FTS_MAX_WORD_LEN_IN_CHAR     HA_FT_MAXCHARLEN
      storage/innobase/include/fts0fts.h-
      

      InnoDB's FTS_MAX_WORD_LEN is larger than HA_FT_MAXBYTELEN.

      Probably isn't a problem because the lower limit is the enforcement.

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.