1SET @start_global_value = @@global.thread_pool_oversubscribe;
2select @@global.thread_pool_oversubscribe;
3@@global.thread_pool_oversubscribe
43
5select @@session.thread_pool_oversubscribe;
6ERROR HY000: Variable 'thread_pool_oversubscribe' is a GLOBAL variable
7show global variables like 'thread_pool_oversubscribe';
8Variable_name	Value
9thread_pool_oversubscribe	3
10show session variables like 'thread_pool_oversubscribe';
11Variable_name	Value
12thread_pool_oversubscribe	3
13select * from information_schema.global_variables where variable_name='thread_pool_oversubscribe';
14VARIABLE_NAME	VARIABLE_VALUE
15THREAD_POOL_OVERSUBSCRIBE	3
16select * from information_schema.session_variables where variable_name='thread_pool_oversubscribe';
17VARIABLE_NAME	VARIABLE_VALUE
18THREAD_POOL_OVERSUBSCRIBE	3
19set global thread_pool_oversubscribe=60;
20select @@global.thread_pool_oversubscribe;
21@@global.thread_pool_oversubscribe
2260
23set global thread_pool_oversubscribe=1000;
24select @@global.thread_pool_oversubscribe;
25@@global.thread_pool_oversubscribe
261000
27set session thread_pool_oversubscribe=1;
28ERROR HY000: Variable 'thread_pool_oversubscribe' is a GLOBAL variable and should be set with SET GLOBAL
29set global thread_pool_oversubscribe=1.1;
30ERROR 42000: Incorrect argument type to variable 'thread_pool_oversubscribe'
31set global thread_pool_oversubscribe=1e1;
32ERROR 42000: Incorrect argument type to variable 'thread_pool_oversubscribe'
33set global thread_pool_oversubscribe="foo";
34ERROR 42000: Incorrect argument type to variable 'thread_pool_oversubscribe'
35set global thread_pool_oversubscribe=-1;
36Warnings:
37Warning	1292	Truncated incorrect thread_pool_oversubscribe value: '-1'
38select @@global.thread_pool_oversubscribe;
39@@global.thread_pool_oversubscribe
401
41set global thread_pool_oversubscribe=10000000000;
42Warnings:
43Warning	1292	Truncated incorrect thread_pool_oversubscribe value: '10000000000'
44select @@global.thread_pool_oversubscribe;
45@@global.thread_pool_oversubscribe
461000
47set @@global.thread_pool_oversubscribe = @start_global_value;
48