mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '11.2' into 11.4
This commit is contained in:
@@ -805,3 +805,19 @@ SELECT f1, MATCH(f1) AGAINST ("test" IN BOOLEAN MODE) FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.3 tests
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-35183 ADD FULLTEXT INDEX unnecessarily DROPS FTS
|
||||
--echo # COMMON TABLES
|
||||
--echo #
|
||||
CREATE TABLE t1 (
|
||||
ID INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
|
||||
title VARCHAR(200), book VARCHAR(200),
|
||||
FULLTEXT fidx(title)) ENGINE = InnoDB;
|
||||
INSERT INTO t1(title) VALUES('database');
|
||||
ALTER TABLE t1 DROP INDEX fidx;
|
||||
select space into @common_space from information_schema.innodb_sys_tables where name like "test/FTS_%_CONFIG";
|
||||
ALTER TABLE t1 ADD FULLTEXT fidx_1(book);
|
||||
select space=@common_space from information_schema.innodb_sys_tables where name like "test/FTS_%_CONFIG";
|
||||
SHOW CREATE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
|
@@ -1155,7 +1155,9 @@ DROP TABLE t;
|
||||
# InnoDB FTS does not support index scan from handler
|
||||
CREATE TABLE t(a CHAR(1),FULLTEXT KEY(a)) ENGINE=INNODB;
|
||||
HANDLER t OPEN;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a NEXT;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a PREV;
|
||||
DROP TABLE t;
|
||||
|
||||
|
@@ -1148,7 +1148,9 @@ DROP TABLE t;
|
||||
# InnoDB FTS does not support index scan from handler
|
||||
CREATE TABLE t(a CHAR(1),FULLTEXT KEY(a)) ENGINE=INNODB;
|
||||
HANDLER t OPEN;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a NEXT;
|
||||
--error ER_KEY_DOESNT_SUPPORT
|
||||
HANDLER t READ a PREV;
|
||||
DROP TABLE t;
|
||||
|
||||
|
Reference in New Issue
Block a user