1call mtr.add_suppression("option 'ngram-token-size': signed value 0");
2call mtr.add_suppression("option 'ngram-token-size': signed value -1");
3call mtr.add_suppression("option 'ngram-token-size': signed value 11");
4select @@global.ngram_token_size;
5@@global.ngram_token_size
62
7select @@session.ngram_token_size;
8ERROR HY000: Variable 'ngram_token_size' is a GLOBAL variable
9show global variables like 'ngram_token_size';
10Variable_name	Value
11ngram_token_size	2
12show session variables like 'ngram_token_size';
13Variable_name	Value
14ngram_token_size	2
15select * from information_schema.global_variables where variable_name='ngram_token_size';
16VARIABLE_NAME	VARIABLE_VALUE
17NGRAM_TOKEN_SIZE	2
18select * from information_schema.session_variables where variable_name='ngram_token_size';
19VARIABLE_NAME	VARIABLE_VALUE
20NGRAM_TOKEN_SIZE	2
21set global ngram_token_size = 3;
22ERROR HY000: Variable 'ngram_token_size' is a read only variable
23# restart: --ngram_token_size=0
24select * from information_schema.global_variables where variable_name='ngram_token_size';
25VARIABLE_NAME	VARIABLE_VALUE
26NGRAM_TOKEN_SIZE	1
27# restart: --ngram_token_size=-1
28select * from information_schema.global_variables where variable_name='ngram_token_size';
29VARIABLE_NAME	VARIABLE_VALUE
30NGRAM_TOKEN_SIZE	1
31# restart: --ngram_token_size=11
32select * from information_schema.global_variables where variable_name='ngram_token_size';
33VARIABLE_NAME	VARIABLE_VALUE
34NGRAM_TOKEN_SIZE	10
35# restart: --ngram_token_size=10
36select * from information_schema.global_variables where variable_name='ngram_token_size';
37VARIABLE_NAME	VARIABLE_VALUE
38NGRAM_TOKEN_SIZE	10
39