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

Non-spatial key on POINT silently changes prefix key length

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
    • Fix Version/s: 10.5
    • Component/s: Data types, GIS
    • Labels:
      None

      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

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: