mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
Merge 10.5 to 10.6
This commit is contained in:
commit
f3fcf5f45c
85 changed files with 1512 additions and 449 deletions
|
|
@ -252,6 +252,16 @@ UNLOCK TABLES;
|
|||
ALTER TABLE tab DISCARD TABLESPACE;
|
||||
SELECT c1,ST_Astext(c2),ST_Astext(c4) FROM tab;
|
||||
ERROR HY000: Tablespace has been discarded for table `tab`
|
||||
ERROR HY000: Internal error: Drop all secondary indexes before importing table test/tab when .cfg file is missing.
|
||||
Table Create Table
|
||||
tab CREATE TABLE `tab` (
|
||||
`c1` int(11) NOT NULL,
|
||||
`c2` point NOT NULL,
|
||||
`c3` linestring NOT NULL,
|
||||
`c4` polygon NOT NULL,
|
||||
`c5` geometry NOT NULL,
|
||||
PRIMARY KEY (`c2`(25))
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
CHECK TABLE tab;
|
||||
Table Op Msg_type Msg_text
|
||||
test.tab check status OK
|
||||
|
|
@ -282,9 +292,6 @@ INSERT INTO tab SELECT * FROM tab1;
|
|||
ALTER TABLE tab DROP PRIMARY KEY;
|
||||
affected rows: 1
|
||||
info: Records: 1 Duplicates: 0 Warnings: 0
|
||||
ALTER TABLE tab DROP INDEX idx2;
|
||||
affected rows: 0
|
||||
info: Records: 0 Duplicates: 0 Warnings: 0
|
||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
||||
CREATE TEMPORARY TABLE temp_tab AS SELECT * FROM tab where c1 = c2;
|
||||
ERROR HY000: Illegal parameter data types int and point for operation '='
|
||||
|
|
@ -325,18 +332,10 @@ tab CREATE TABLE `tab` (
|
|||
`c2` point NOT NULL,
|
||||
`c3` linestring NOT NULL,
|
||||
`c4` polygon NOT NULL,
|
||||
`c5` geometry NOT NULL,
|
||||
SPATIAL KEY `idx3` (`c3`),
|
||||
SPATIAL KEY `idx4` (`c4`) COMMENT 'testing spatial index on Polygon',
|
||||
SPATIAL KEY `idx5` (`c5`) COMMENT 'testing spatial index on Geometry',
|
||||
KEY `idx6` (`c4`(10)) USING BTREE
|
||||
`c5` geometry NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW INDEX FROM tab;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
|
||||
tab 1 idx3 1 c3 A # 32 NULL SPATIAL NO
|
||||
tab 1 idx4 1 c4 A # 32 NULL SPATIAL testing spatial index on Polygon NO
|
||||
tab 1 idx5 1 c5 A # 32 NULL SPATIAL testing spatial index on Geometry NO
|
||||
tab 1 idx6 1 c4 A # 10 NULL BTREE NO
|
||||
DELETE FROM tab;
|
||||
ALTER TABLE tab ADD PRIMARY KEY(c2);
|
||||
affected rows: 0
|
||||
|
|
@ -357,20 +356,12 @@ tab CREATE TABLE `tab` (
|
|||
`c5` geometry NOT NULL,
|
||||
PRIMARY KEY (`c2`(25)),
|
||||
UNIQUE KEY `const_1` (`c2`(25)),
|
||||
SPATIAL KEY `idx3` (`c3`),
|
||||
SPATIAL KEY `idx4` (`c4`) COMMENT 'testing spatial index on Polygon',
|
||||
SPATIAL KEY `idx5` (`c5`) COMMENT 'testing spatial index on Geometry',
|
||||
KEY `idx6` (`c4`(10)) USING BTREE,
|
||||
SPATIAL KEY `idx2` (`c2`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW INDEX FROM tab;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
|
||||
tab 0 PRIMARY 1 c2 A # 25 NULL BTREE NO
|
||||
tab 0 const_1 1 c2 A # 25 NULL BTREE NO
|
||||
tab 1 idx3 1 c3 A # 32 NULL SPATIAL NO
|
||||
tab 1 idx4 1 c4 A # 32 NULL SPATIAL testing spatial index on Polygon NO
|
||||
tab 1 idx5 1 c5 A # 32 NULL SPATIAL testing spatial index on Geometry NO
|
||||
tab 1 idx6 1 c4 A # 10 NULL BTREE NO
|
||||
tab 1 idx2 1 c2 A # 32 NULL SPATIAL NO
|
||||
INSERT INTO tab(c1,c2,c3,c4,c5)
|
||||
VALUES(1,ST_GeomFromText('POINT(10 10)'),ST_GeomFromText('LINESTRING(5 5,20 20,30 30)'),
|
||||
|
|
@ -399,20 +390,12 @@ tab CREATE TABLE `tab` (
|
|||
`c5` geometry NOT NULL,
|
||||
PRIMARY KEY (`c5`(10)),
|
||||
UNIQUE KEY `const_1` (`c5`(10)),
|
||||
SPATIAL KEY `idx3` (`c3`),
|
||||
SPATIAL KEY `idx4` (`c4`) COMMENT 'testing spatial index on Polygon',
|
||||
SPATIAL KEY `idx5` (`c5`) COMMENT 'testing spatial index on Geometry',
|
||||
KEY `idx6` (`c4`(10)) USING BTREE,
|
||||
SPATIAL KEY `idx2` (`c2`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW INDEX FROM tab;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
|
||||
tab 0 PRIMARY 1 c5 A # 10 NULL BTREE NO
|
||||
tab 0 const_1 1 c5 A # 10 NULL BTREE NO
|
||||
tab 1 idx3 1 c3 A # 32 NULL SPATIAL NO
|
||||
tab 1 idx4 1 c4 A # 32 NULL SPATIAL testing spatial index on Polygon NO
|
||||
tab 1 idx5 1 c5 A # 32 NULL SPATIAL testing spatial index on Geometry NO
|
||||
tab 1 idx6 1 c4 A # 10 NULL BTREE NO
|
||||
tab 1 idx2 1 c2 A # 32 NULL SPATIAL NO
|
||||
INSERT INTO tab(c1,c2,c3,c4,c5)
|
||||
VALUES(1,ST_GeomFromText('POINT(10 10)'),ST_GeomFromText('LINESTRING(5 5,20 20,30 30)'),
|
||||
|
|
|
|||
|
|
@ -277,8 +277,17 @@ SELECT c1,ST_Astext(c2),ST_Astext(c4) FROM tab;
|
|||
|
||||
--disable_query_log
|
||||
|
||||
--error ER_INTERNAL_ERROR
|
||||
ALTER TABLE tab IMPORT TABLESPACE;
|
||||
|
||||
ALTER TABLE tab DROP INDEX idx2;
|
||||
ALTER TABLE tab DROP INDEX idx3;
|
||||
ALTER TABLE tab DROP INDEX idx4;
|
||||
ALTER TABLE tab DROP INDEX idx5;
|
||||
ALTER TABLE tab DROP INDEX idx6;
|
||||
|
||||
SHOW CREATE TABLE tab;
|
||||
ALTER TABLE tab IMPORT TABLESPACE;
|
||||
--enable_query_log
|
||||
|
||||
CHECK TABLE tab;
|
||||
|
|
@ -308,7 +317,6 @@ INSERT INTO tab SELECT * FROM tab1;
|
|||
--enable_info
|
||||
ALTER TABLE tab DROP PRIMARY KEY;
|
||||
|
||||
ALTER TABLE tab DROP INDEX idx2;
|
||||
--disable_info
|
||||
|
||||
# Check spatial index on temp tables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue