| 1 |
'#---------------------BS_STVARS_051_01----------------------#' |
| 2 |
SELECT COUNT(@@GLOBAL.thread_handling); |
| 3 |
COUNT(@@GLOBAL.thread_handling) |
| 4 |
1 |
| 5 |
1 Expected |
| 6 |
'#---------------------BS_STVARS_051_02----------------------#' |
| 7 |
SET @@GLOBAL.thread_handling=1; |
| 8 |
ERROR HY000: Variable 'thread_handling' is a read only variable |
| 9 |
Expected error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 10 |
SELECT COUNT(@@GLOBAL.thread_handling); |
| 11 |
COUNT(@@GLOBAL.thread_handling) |
| 12 |
1 |
| 13 |
1 Expected |
| 14 |
'#---------------------BS_STVARS_051_03----------------------#' |
| 15 |
SELECT @@GLOBAL.thread_handling = VARIABLE_VALUE |
| 16 |
FROM performance_schema.global_variables |
| 17 |
WHERE VARIABLE_NAME='thread_handling'; |
| 18 |
@@GLOBAL.thread_handling = VARIABLE_VALUE |
| 19 |
1 |
| 20 |
1 Expected |
| 21 |
SELECT COUNT(@@GLOBAL.thread_handling); |
| 22 |
COUNT(@@GLOBAL.thread_handling) |
| 23 |
1 |
| 24 |
1 Expected |
| 25 |
SELECT COUNT(VARIABLE_VALUE) |
| 26 |
FROM performance_schema.global_variables |
| 27 |
WHERE VARIABLE_NAME='thread_handling'; |
| 28 |
COUNT(VARIABLE_VALUE) |
| 29 |
1 |
| 30 |
1 Expected |
| 31 |
'#---------------------BS_STVARS_051_04----------------------#' |
| 32 |
SELECT @@thread_handling = @@GLOBAL.thread_handling; |
| 33 |
@@thread_handling = @@GLOBAL.thread_handling |
| 34 |
1 |
| 35 |
1 Expected |
| 36 |
'#---------------------BS_STVARS_051_05----------------------#' |
| 37 |
SELECT COUNT(@@thread_handling); |
| 38 |
COUNT(@@thread_handling) |
| 39 |
1 |
| 40 |
1 Expected |
| 41 |
SELECT COUNT(@@local.thread_handling); |
| 42 |
ERROR HY000: Variable 'thread_handling' is a GLOBAL variable |
| 43 |
Bug:Variable is global so it can not be accessed by local there should be error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 44 |
Expected error 'Variable is a GLOBAL variable' |
| 45 |
SELECT COUNT(@@SESSION.thread_handling); |
| 46 |
ERROR HY000: Variable 'thread_handling' is a GLOBAL variable |
| 47 |
Bug:Variable is global so it can not be accessed by session there should be error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 48 |
Expected error 'Variable is a GLOBAL variable' |
| 49 |
SELECT COUNT(@@GLOBAL.thread_handling); |
| 50 |
COUNT(@@GLOBAL.thread_handling) |
| 51 |
1 |
| 52 |
1 Expected |
| 53 |
SELECT thread_handling; |
| 54 |
ERROR 42S22: Unknown column 'thread_handling' in 'field list' |
| 55 |
Expected error 'Unknown column' |