Skip to content

Commit

Permalink
MDEV-7408: Cannot use a table containing special chars for InnoDB sto…
Browse files Browse the repository at this point in the history
…pwords

Added test case. No actual bug found.
  • Loading branch information
Jan Lindström committed Feb 18, 2015
1 parent 63905f1 commit 2fb81b9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mysql-test/suite/innodb/r/innodb-mdev-7408.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
select @@global.innodb_ft_server_stopword_table;
@@global.innodb_ft_server_stopword_table
NULL
CREATE TABLE `stop_it-IT` ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it-IT';
ERROR 42000: Variable 'innodb_ft_server_stopword_table' can't be set to the value of 'test/stop_it-IT'
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it@002dIT';
drop table `stop_it-IT`;
CREATE TABLE stop_it ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it';
SET @@global.innodb_ft_server_stopword_table = NULL;
drop table stop_it;
2 changes: 2 additions & 0 deletions mysql-test/suite/innodb/t/innodb-mdev-7408.opt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--innodb_ft_default_stopword

15 changes: 15 additions & 0 deletions mysql-test/suite/innodb/t/innodb-mdev-7408.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--source include/have_innodb.inc

select @@global.innodb_ft_server_stopword_table;
CREATE TABLE `stop_it-IT` ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
--error 1231
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it-IT';
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it@002dIT';
drop table `stop_it-IT`;

CREATE TABLE stop_it ENGINE = InnoDB SELECT * FROM information_schema.INNODB_FT_DEFAULT_STOPWORD;
SET @@global.innodb_ft_server_stopword_table = 'test/stop_it';

SET @@global.innodb_ft_server_stopword_table = NULL;

drop table stop_it;

0 comments on commit 2fb81b9

Please sign in to comment.