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

Non-spatial key on POINT silently changes prefix key length

    XMLWordPrintable

Details

    Description

      CREATE OR REPLACE TABLE t1 (a POINT, KEY(a(10)));
      SHOW CREATE TABLE t1;
      

      +-------+----------------------------------------------------------------------------------------------------------+
      | Table | Create Table                                                                                             |
      +-------+----------------------------------------------------------------------------------------------------------+
      | t1    | CREATE TABLE `t1` (
        `a` point DEFAULT NULL,
        KEY `a` (`a`(25))
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+----------------------------------------------------------------------------------------------------------+
      

      The key length of 25 looks wrong. It should be 10, as in the CREATE statement.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              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.