[MDEV-19927] Non-spatial key on POINT silently changes prefix key length Created: 2019-07-02  Updated: 2020-06-03

Status: Open
Project: MariaDB Server
Component/s: Data types, GIS
Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.5

Type: Bug Priority: Minor
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-4912 Data type plugin API version 1 Closed
Epic Link: Data type cleanups

 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.


Generated at Thu Feb 08 08:55:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.