mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
reject invalid spatial key declarations in the parser
This commit is contained in:
@@ -1543,8 +1543,8 @@ DROP TABLE t1;
|
||||
#
|
||||
CREATE TABLE parent(p POINT, PRIMARY KEY(p)) ENGINE=InnoDB;
|
||||
CREATE TABLE child(p POINT NOT NULL) ENGINE=InnoDB;
|
||||
ALTER TABLE parent ADD SPATIAL INDEX idx1(p ASC);
|
||||
ALTER TABLE child ADD SPATIAL INDEX idx2(p ASC);
|
||||
ALTER TABLE parent ADD SPATIAL INDEX idx1(p);
|
||||
ALTER TABLE child ADD SPATIAL INDEX idx2(p);
|
||||
SHOW CREATE TABLE parent;
|
||||
Table Create Table
|
||||
parent CREATE TABLE `parent` (
|
||||
|
Reference in New Issue
Block a user