|
| 1 | +# |
| 2 | +# Bug #29717909 MEMORY LIFETIME OF VARIABLES BETWEEN CHECK AND UPDATE INCORRECTLY MANAGED |
| 3 | +# |
| 4 | +select @@innodb_ft_server_stopword_table; |
| 5 | +@@innodb_ft_server_stopword_table |
| 6 | +NULL |
| 7 | +create table user_stopword_1(value varchar(30)) engine = innodb; |
| 8 | +create table user_stopword_2(value varchar(30)) engine = innodb; |
| 9 | +set @blah = 'test/user_stopword_1'; |
| 10 | +SET GLOBAL innodb_ft_server_stopword_table= @blah; |
| 11 | +select @@innodb_ft_server_stopword_table; |
| 12 | +@@innodb_ft_server_stopword_table |
| 13 | +test/user_stopword_1 |
| 14 | +set @blah = 'test/user_stopword_2'; |
| 15 | +SET GLOBAL innodb_ft_server_stopword_table= @blah; |
| 16 | +select @@innodb_ft_server_stopword_table; |
| 17 | +@@innodb_ft_server_stopword_table |
| 18 | +test/user_stopword_2 |
| 19 | +SET GLOBAL innodb_ft_server_stopword_table= NULL; |
| 20 | +select @@innodb_ft_server_stopword_table; |
| 21 | +@@innodb_ft_server_stopword_table |
| 22 | +NULL |
| 23 | +SET GLOBAL innodb_ft_server_stopword_table= default; |
| 24 | +select @@innodb_ft_server_stopword_table; |
| 25 | +@@innodb_ft_server_stopword_table |
| 26 | +NULL |
| 27 | +drop table user_stopword_1, user_stopword_2; |
| 28 | +select @@innodb_buffer_pool_filename; |
| 29 | +@@innodb_buffer_pool_filename |
| 30 | +ib_buffer_pool |
| 31 | +set @blah='hello'; |
| 32 | +set global innodb_buffer_pool_filename = @blah; |
| 33 | +select @@innodb_buffer_pool_filename; |
| 34 | +@@innodb_buffer_pool_filename |
| 35 | +hello |
| 36 | +set global innodb_buffer_pool_filename="bye"; |
| 37 | +select @@innodb_buffer_pool_filename; |
| 38 | +@@innodb_buffer_pool_filename |
| 39 | +bye |
| 40 | +set global innodb_buffer_pool_filename=NULL; |
| 41 | +ERROR 42000: Variable 'innodb_buffer_pool_filename' can't be set to the value of 'NULL' |
| 42 | +select @@innodb_buffer_pool_filename; |
| 43 | +@@innodb_buffer_pool_filename |
| 44 | +bye |
| 45 | +set global innodb_buffer_pool_filename=default; |
| 46 | +select @@innodb_buffer_pool_filename; |
| 47 | +@@innodb_buffer_pool_filename |
| 48 | +ib_buffer_pool |
| 49 | +CREATE TABLE t1 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, |
| 50 | +opening_line TEXT(500), author VARCHAR(200), title VARCHAR(200), FULLTEXT idx |
| 51 | +(opening_line)) ENGINE=InnoDB; |
| 52 | +CREATE TABLE t2 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, |
| 53 | +opening_line TEXT(500), author VARCHAR(200), title VARCHAR(200), FULLTEXT idx |
| 54 | +(opening_line)) ENGINE=InnoDB; |
| 55 | +select @@innodb_ft_aux_table; |
| 56 | +@@innodb_ft_aux_table |
| 57 | +NULL |
| 58 | +set @blah = 'test/t1'; |
| 59 | +SET GLOBAL innodb_ft_aux_table = @blah; |
| 60 | +select @@innodb_ft_aux_table; |
| 61 | +@@innodb_ft_aux_table |
| 62 | +test/t1 |
| 63 | +set @blah = 'test/t2'; |
| 64 | +SET GLOBAL innodb_ft_aux_table = @blah; |
| 65 | +SET GLOBAL innodb_ft_aux_table = NULL; |
| 66 | +select @@innodb_ft_aux_table; |
| 67 | +@@innodb_ft_aux_table |
| 68 | +NULL |
| 69 | +SET GLOBAL innodb_ft_aux_table =default; |
| 70 | +select @@innodb_ft_aux_table; |
| 71 | +@@innodb_ft_aux_table |
| 72 | +NULL |
| 73 | +drop table t1,t2; |
0 commit comments