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:
@@ -26,10 +26,10 @@ c3 LINESTRING NOT NULL,c4 POLYGON NOT NULL,c5 GEOMETRY NOT NULL)
|
||||
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
|
||||
|
||||
# Check spatial index functionality with Create Index clause options
|
||||
CREATE SPATIAL INDEX idx1 on tab(c2 ASC);
|
||||
CREATE SPATIAL INDEX idx2 on tab(c3 DESC) COMMENT 'wl6968';
|
||||
CREATE SPATIAL INDEX idx3 on tab(c4 ASC) KEY_BLOCK_SIZE=8 ;
|
||||
CREATE SPATIAL INDEX idx4 on tab(c5 DESC) KEY_BLOCK_SIZE=4
|
||||
CREATE SPATIAL INDEX idx1 on tab(c2);
|
||||
CREATE SPATIAL INDEX idx2 on tab(c3) COMMENT 'wl6968';
|
||||
CREATE SPATIAL INDEX idx3 on tab(c4) KEY_BLOCK_SIZE=8 ;
|
||||
CREATE SPATIAL INDEX idx4 on tab(c5) KEY_BLOCK_SIZE=4
|
||||
COMMENT 'Spatial index on Geometry type column';
|
||||
|
||||
# Check index type
|
||||
@@ -411,10 +411,10 @@ c3 LINESTRING NOT NULL,c4 POLYGON NOT NULL,c5 GEOMETRY NOT NULL)
|
||||
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=16;
|
||||
|
||||
# Check spatial index functionality with Create Index clause options
|
||||
CREATE SPATIAL INDEX idx1 on tab(c2 ASC);
|
||||
CREATE SPATIAL INDEX idx2 on tab(c3 DESC) COMMENT 'wl6968';
|
||||
CREATE SPATIAL INDEX idx3 on tab(c4 ASC) KEY_BLOCK_SIZE=2 ;
|
||||
CREATE SPATIAL INDEX idx4 on tab(c5 DESC) KEY_BLOCK_SIZE=8
|
||||
CREATE SPATIAL INDEX idx1 on tab(c2);
|
||||
CREATE SPATIAL INDEX idx2 on tab(c3) COMMENT 'wl6968';
|
||||
CREATE SPATIAL INDEX idx3 on tab(c4) KEY_BLOCK_SIZE=2 ;
|
||||
CREATE SPATIAL INDEX idx4 on tab(c5) KEY_BLOCK_SIZE=8
|
||||
COMMENT 'Spatial index on Geometry type column';
|
||||
|
||||
# Check index type
|
||||
@@ -783,10 +783,10 @@ c3 LINESTRING NOT NULL,c4 POLYGON NOT NULL,c5 GEOMETRY NOT NULL)
|
||||
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=16;
|
||||
|
||||
# Check spatial index functionality with Create Index clause options
|
||||
CREATE SPATIAL INDEX idx1 on tab(c2 ASC);
|
||||
CREATE SPATIAL INDEX idx2 on tab(c3 DESC) COMMENT 'wl6968';
|
||||
CREATE SPATIAL INDEX idx3 on tab(c4 ASC) KEY_BLOCK_SIZE=16 ;
|
||||
CREATE SPATIAL INDEX idx4 on tab(c5 DESC) KEY_BLOCK_SIZE=16
|
||||
CREATE SPATIAL INDEX idx1 on tab(c2);
|
||||
CREATE SPATIAL INDEX idx2 on tab(c3) COMMENT 'wl6968';
|
||||
CREATE SPATIAL INDEX idx3 on tab(c4) KEY_BLOCK_SIZE=16 ;
|
||||
CREATE SPATIAL INDEX idx4 on tab(c5) KEY_BLOCK_SIZE=16
|
||||
COMMENT 'Spatial index on Geometry type column';
|
||||
|
||||
# Check index type
|
||||
|
Reference in New Issue
Block a user