mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
reject invalid spatial key declarations in the parser
This commit is contained in:
@@ -838,19 +838,6 @@ CREATE TABLE t2 (
|
||||
col2 POINT
|
||||
);
|
||||
|
||||
# --error ER_TOO_MANY_KEY_PARTS
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
CREATE SPATIAL INDEX idx0 ON t2 (col1, col2);
|
||||
|
||||
# --error ER_TOO_MANY_KEY_PARTS
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
CREATE TABLE t3 (
|
||||
col0 INTEGER NOT NULL,
|
||||
col1 POINT,
|
||||
col2 LINESTRING,
|
||||
SPATIAL INDEX i1 (col1, col2)
|
||||
);
|
||||
|
||||
# cleanup
|
||||
DROP TABLE t0, t1, t2;
|
||||
|
||||
|
Reference in New Issue
Block a user