Skip to content

Commit 2fb81b9

Browse files
author
Jan Lindström
committed
MDEV-7408: Cannot use a table containing special chars for InnoDB stopwords
Added test case. No actual bug found.
1 parent 63905f1 commit 2fb81b9

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
select @@global.innodb_ft_server_stopword_table;
2+
@@global.innodb_ft_server_stopword_table
3+
NULL
4+
CREATE TABLE `stop_it-IT` ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
5+
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it-IT';
6+
ERROR 42000: Variable 'innodb_ft_server_stopword_table' can't be set to the value of 'test/stop_it-IT'
7+
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it@002dIT';
8+
drop table `stop_it-IT`;
9+
CREATE TABLE stop_it ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
10+
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it';
11+
SET @@global.innodb_ft_server_stopword_table = NULL;
12+
drop table stop_it;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--innodb_ft_default_stopword
2+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--source include/have_innodb.inc
2+
3+
select @@global.innodb_ft_server_stopword_table;
4+
CREATE TABLE `stop_it-IT` ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
5+
--error 1231
6+
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it-IT';
7+
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it@002dIT';
8+
drop table `stop_it-IT`;
9+
10+
CREATE TABLE stop_it ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
11+
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it';
12+
13+
SET @@global.innodb_ft_server_stopword_table = NULL;
14+
15+
drop table stop_it;

0 commit comments

Comments
 (0)