mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-13134 Introduce ALTER TABLE attributes ALGORITHM=NOCOPY and ALGORITHM=INSTANT
Remove the warning for InnoDB rebuilding table to add column FTS_DOC_ID.
This commit is contained in:
@@ -9,8 +9,6 @@ INSERT INTO t1 (a,b) VALUES
|
||||
('How To Use MySQL Well','After you went through a ...'),
|
||||
('Optimizing MySQL','In this tutorial we will show ...');
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@@ -161,8 +159,6 @@ a VARCHAR(200),
|
||||
b TEXT
|
||||
) ENGINE = InnoDB;
|
||||
CREATE FULLTEXT INDEX idx on t1 (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
INSERT INTO t1 (a,b) VALUES
|
||||
('MySQL Tutorial','DBMS stands for DataBase ...') ,
|
||||
('How To Use MySQL Well','After you went through a ...'),
|
||||
@@ -340,8 +336,6 @@ a VARCHAR(200),
|
||||
b TEXT
|
||||
) ENGINE = InnoDB;
|
||||
CREATE FULLTEXT INDEX idx on t1 (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
INSERT INTO t1 (a,b) VALUES
|
||||
('MySQL from Tutorial','DBMS stands for DataBase ...');
|
||||
INSERT INTO t1 (a,b) VALUES
|
||||
@@ -420,8 +414,6 @@ set names utf8;
|
||||
"----------Test1---------"
|
||||
create table t50 (s1 varchar(60) character set utf8 collate utf8_bin) engine = innodb;
|
||||
create fulltext index i on t50 (s1);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
insert into t50 values ('ABCDE'),('FGHIJ'),('KLMNO'),('VÐƷWİ');
|
||||
select * from t50 where match(s1) against ('VÐƷWİ');
|
||||
s1
|
||||
@@ -431,8 +423,6 @@ drop table t50;
|
||||
create table t50 (s1 int unsigned primary key auto_increment, s2
|
||||
varchar(60) character set utf8) engine = innodb;
|
||||
create fulltext index i on t50 (s2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
insert into t50 (s2) values ('FGHIJ'),('KLMNO'),('VÐƷWİ'),('ABCDE');
|
||||
select * from t50 order by s2;
|
||||
s1 s2
|
||||
@@ -445,8 +435,6 @@ drop table t50;
|
||||
create table t50 (id int unsigned primary key auto_increment, s2
|
||||
varchar(60) character set utf8) engine = innodb;
|
||||
create fulltext index i on t50 (s2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
insert into t50 (s2) values ('FGHIJ'),('KLMNO'),('VÐƷWİ'),('ABCDE');
|
||||
set @@autocommit=0;
|
||||
update t50 set s2 = lower(s2);
|
||||
@@ -470,8 +458,6 @@ set @@autocommit=1;
|
||||
create table t50 (id int unsigned primary key auto_increment, s2
|
||||
varchar(60) character set utf8) engine = innodb;
|
||||
create fulltext index i on t50 (s2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
insert into t50 (s2) values ('FGHIJ'),('KLMNO'),('VÐƷWİ'),('ABCD*');
|
||||
select * from t50 where match(s2) against ('abcd*' in natural language
|
||||
mode);
|
||||
@@ -507,8 +493,6 @@ INSERT INTO t1 (a,b) VALUES
|
||||
('aab MySQL vs. YourSQL','In the following database comparison ...'),
|
||||
('aaa MySQL Security','When configured properly, MySQL ...');
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SELECT * FROM t1 ORDER BY MATCH(a,b) AGAINST ('aac') DESC;
|
||||
id a b
|
||||
3 aac Optimizing MySQL In this tutorial we will show ...
|
||||
@@ -556,8 +540,6 @@ INSERT INTO t1 (a,b) VALUES
|
||||
('How To Use MySQL Well','After you went through a q ...abdd'),
|
||||
('Optimizing MySQL','In this tutorial we will show ...abed');
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@@ -637,8 +619,6 @@ DROP TABLE t2,t1;
|
||||
set names utf8;
|
||||
CREATE TABLE t1 (s1 INT, s2 VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_SPANISH_CI) ENGINE = InnoDB;
|
||||
CREATE FULLTEXT INDEX i ON t1 (s2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
INSERT INTO t1 VALUES (1,'aaCen'),(2,'aaCha'),(3,'aaCio'),(4,'aaçen'),(5,'aaçha'),(6,'aaçio');
|
||||
SELECT * FROM t1 WHERE MATCH(s2) AGAINST ('aach*' IN BOOLEAN MODE);
|
||||
s1 s2
|
||||
@@ -656,8 +636,6 @@ DROP TABLE t1;
|
||||
"----------Test14---------"
|
||||
CREATE TABLE t1(s1 INT , s2 VARCHAR(100) CHARACTER SET sjis) ENGINE = InnoDB;
|
||||
CREATE FULLTEXT INDEX i ON t1 (s2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
INSERT INTO t1 VALUES (1,'ペペペ'),(2,'テテテ'),(3,'ルルル'),(4,'グググ');
|
||||
DROP TABLE t1;
|
||||
"----------Test15---------"
|
||||
@@ -675,8 +653,6 @@ Warnings:
|
||||
Note 1051 Unknown table 'test.t2'
|
||||
CREATE TABLE t2 (s1 VARCHAR(60) CHARACTER SET UTF8 COLLATE UTF8_POLISH_CI) ENGINE = InnoDB;
|
||||
CREATE FULLTEXT INDEX i ON t2 ( s1);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
INSERT INTO t2 VALUES
|
||||
('a'),('b'),('c'),('d'),('ŁŁŁŁ'),('LLLL'),(NULL),('ŁŁŁŁ ŁŁŁŁ'),('LLLLLLLL');
|
||||
SELECT * FROM t2 WHERE MATCH(s1) AGAINST ('LLLL' COLLATE UTF8_UNICODE_520_CI);
|
||||
@@ -686,8 +662,6 @@ DROP TABLE t1,t2;
|
||||
"----------Test16---------"
|
||||
CREATE TABLE t1 (s1 INT, s2 VARCHAR(50) CHARACTER SET UTF8) ENGINE = InnoDB;
|
||||
CREATE FULLTEXT INDEX i ON t1(s2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
INSERT INTO t1 VALUES (2, 'ğė Daśi p ');
|
||||
SELECT * FROM t1 WHERE MATCH(s2) AGAINST ('+p +"ğė Daśi*"' IN BOOLEAN MODE);
|
||||
s1 s2
|
||||
@@ -696,8 +670,6 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 ( id INT , char_column VARCHAR(60) CHARACTER SET UTF8) ENGINE = InnoDB;
|
||||
INSERT INTO t1 VALUES (1,'İóëɠ');
|
||||
CREATE FULLTEXT INDEX i ON t1 (char_column);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SELECT * FROM t1 WHERE MATCH(char_column) AGAINST ('"İóëɠ"' IN BOOLEAN MODE);
|
||||
id char_column
|
||||
1 İóëɠ
|
||||
@@ -707,8 +679,6 @@ CREATE TABLE t1 ( id INT , char_column VARCHAR(60) CHARACTER SET UTF32, char_col
|
||||
INSERT INTO t1 (char_column) VALUES ('abcde'),('fghij'),('klmno'),('qrstu');
|
||||
UPDATE t1 SET char_column2 = char_column;
|
||||
CREATE FULLTEXT INDEX i ON t1 (char_column2);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SELECT * FROM t1 WHERE MATCH(char_column) AGAINST ('abc*' IN BOOLEAN MODE);
|
||||
ERROR HY000: Can't find FULLTEXT index matching the column list
|
||||
DROP TABLE t1;
|
||||
@@ -716,8 +686,6 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 ( id INT , char_column VARCHAR(60) CHARACTER SET UTF8) ENGINE = InnoDB;
|
||||
INSERT INTO t1 VALUES (1,'aaa'),(2,'bbb'),(3,'ccc');
|
||||
CREATE FULLTEXT INDEX i ON t1 (char_column);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
HANDLER t1 OPEN;
|
||||
HANDLER t1 READ i = ('aaa');
|
||||
id char_column
|
||||
@@ -726,8 +694,6 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1 ( id INT , char_column VARCHAR(60) CHARACTER SET UTF8 COLLATE UTF8_CROATIAN_CI) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1,'LJin'),(2,'ljin'),(3,'lmin'),(4,'LJLJLJLJLJ');
|
||||
CREATE FULLTEXT INDEX i ON t1 (char_column);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SELECT count(*) FROM t1 WHERE MATCH (char_column) AGAINST ('lj*' IN BOOLEAN MODE);
|
||||
count(*)
|
||||
3
|
||||
@@ -962,8 +928,6 @@ INSERT INTO t1 (a,b) VALUES
|
||||
('How To Use MySQL Well','After you went through a ...'),
|
||||
('Optimizing MySQL','In this tutorial we will show ...');
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@@ -1037,8 +1001,6 @@ INSERT INTO t1 VALUES
|
||||
(2, 'How To Use MySQL Well','After you went through a ...'),
|
||||
(3, 'Optimizing MySQL','In this tutorial we will show ...');
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
ALTER TABLE t1 ADD UNIQUE INDEX (`id`);
|
||||
SELECT id FROM t1 WHERE MATCH (a,b)
|
||||
AGAINST ('Tutorial' IN NATURAL LANGUAGE MODE);
|
||||
@@ -1069,8 +1031,6 @@ INSERT INTO t1 VALUES
|
||||
(2, 'How To Use MySQL Well','After you went through a ...'),
|
||||
(3, 'Optimizing MySQL','In this tutorial we will show ...');
|
||||
ALTER TABLE t1 ADD UNIQUE INDEX (`id`), ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
SELECT id FROM t1 WHERE MATCH (a,b)
|
||||
AGAINST ('Tutorial' IN NATURAL LANGUAGE MODE);
|
||||
id
|
||||
@@ -1164,8 +1124,6 @@ INSERT INTO t1 (a,b) VALUES
|
||||
('How To Use MySQL Well','After you went through a ...'),
|
||||
('Optimizing MySQL','In this tutorial we will show ...');
|
||||
ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b);
|
||||
Warnings:
|
||||
Warning 124 InnoDB rebuilding table to add column FTS_DOC_ID
|
||||
COMMIT WORK AND CHAIN;
|
||||
INSERT INTO t1 (a,b) VALUES
|
||||
('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'),
|
||||
|
Reference in New Issue
Block a user