1'#---------------------BS_STVARS_051_01----------------------#' 2SELECT COUNT(@@GLOBAL.thread_handling); 3COUNT(@@GLOBAL.thread_handling) 41 51 Expected 6'#---------------------BS_STVARS_051_02----------------------#' 7SET @@GLOBAL.thread_handling=1; 8ERROR HY000: Variable 'thread_handling' is a read only variable 9Expected error ER_INCORRECT_GLOBAL_LOCAL_VAR 10SELECT COUNT(@@GLOBAL.thread_handling); 11COUNT(@@GLOBAL.thread_handling) 121 131 Expected 14'#---------------------BS_STVARS_051_03----------------------#' 15SELECT @@GLOBAL.thread_handling = VARIABLE_VALUE 16FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 17WHERE VARIABLE_NAME='thread_handling'; 18@@GLOBAL.thread_handling = VARIABLE_VALUE 191 201 Expected 21SELECT COUNT(@@GLOBAL.thread_handling); 22COUNT(@@GLOBAL.thread_handling) 231 241 Expected 25SELECT COUNT(VARIABLE_VALUE) 26FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 27WHERE VARIABLE_NAME='thread_handling'; 28COUNT(VARIABLE_VALUE) 291 301 Expected 31'#---------------------BS_STVARS_051_04----------------------#' 32SELECT @@thread_handling = @@GLOBAL.thread_handling; 33@@thread_handling = @@GLOBAL.thread_handling 341 351 Expected 36'#---------------------BS_STVARS_051_05----------------------#' 37SELECT COUNT(@@thread_handling); 38COUNT(@@thread_handling) 391 401 Expected 41SELECT COUNT(@@local.thread_handling); 42ERROR HY000: Variable 'thread_handling' is a GLOBAL variable 43Bug:Variable is global so it can not be accessed by local there should be error ER_INCORRECT_GLOBAL_LOCAL_VAR 44Expected error 'Variable is a GLOBAL variable' 45SELECT COUNT(@@SESSION.thread_handling); 46ERROR HY000: Variable 'thread_handling' is a GLOBAL variable 47Bug:Variable is global so it can not be accessed by session there should be error ER_INCORRECT_GLOBAL_LOCAL_VAR 48Expected error 'Variable is a GLOBAL variable' 49SELECT COUNT(@@GLOBAL.thread_handling); 50COUNT(@@GLOBAL.thread_handling) 511 521 Expected 53SELECT thread_handling = @@SESSION.thread_handling; 54ERROR 42S22: Unknown column 'thread_handling' in 'field list' 55Expected error 'Readonly variable' 56