| 1 |
# bool global |
| 2 |
--source include/have_innodb.inc |
| 3 |
|
| 4 |
SET @start_global_value = @@global.innodb_encryption_threads; |
| 5 |
|
| 6 |
# |
| 7 |
# exists as global only |
| 8 |
# |
| 9 |
select @@global.innodb_encryption_threads; |
| 10 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 11 |
select @@session.innodb_encryption_threads; |
| 12 |
show global variables like 'innodb_encryption_threads'; |
| 13 |
show session variables like 'innodb_encryption_threads'; |
| 14 |
select * from information_schema.global_variables |
| 15 |
where variable_name='innodb_encryption_threads'; |
| 16 |
select * from information_schema.session_variables |
| 17 |
where variable_name='innodb_encryption_threads'; |
| 18 |
|
| 19 |
# |
| 20 |
# show that it's writable |
| 21 |
# |
| 22 |
set global innodb_encryption_threads=0; |
| 23 |
select @@global.innodb_encryption_threads; |
| 24 |
set global innodb_encryption_threads=5; |
| 25 |
select @@global.innodb_encryption_threads; |
| 26 |
set global innodb_encryption_threads=1; |
| 27 |
select @@global.innodb_encryption_threads; |
| 28 |
--error ER_GLOBAL_VARIABLE |
| 29 |
set session innodb_encryption_threads=1; |
| 30 |
|
| 31 |
# |
| 32 |
# incorrect types |
| 33 |
# |
| 34 |
--error ER_WRONG_TYPE_FOR_VAR |
| 35 |
set global innodb_encryption_threads=1.1; |
| 36 |
--error ER_WRONG_TYPE_FOR_VAR |
| 37 |
set global innodb_encryption_threads=1e1; |
| 38 |
--error ER_WRONG_TYPE_FOR_VAR |
| 39 |
set global innodb_encryption_threads="foo"; |
| 40 |
|
| 41 |
SET @@global.innodb_encryption_threads = @start_global_value; |