[MDEV-25130] CREATE TABLE accepts and ignores parameters for geometry types Created: 2021-03-12  Updated: 2021-03-12

Status: Open
Project: MariaDB Server
Component/s: GIS, Parser
Affects Version/s: 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

MariaDB [test]> create table t (a point(1,2));
Query OK, 0 rows affected (0.023 sec)
 
MariaDB [test]> show create table t;
+-------+------------------------------------------------------------------------------------+
| Table | Create Table                                                                       |
+-------+------------------------------------------------------------------------------------+
| t     | CREATE TABLE `t` (
  `a` point DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-------+------------------------------------------------------------------------------------+
1 row in set (0.001 sec)

Same with other geometry types.
I couldn't find in documentation why POINT(x,y) would be accepted as a data type.
If there is an intention behind it, maybe it needs to be documented.
MySQL 5.7, 8.0 return a syntax error.


Generated at Thu Feb 08 09:35:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.