1'#---------------------BS_STVARS_052_01----------------------#' 2SELECT COUNT(@@GLOBAL.tmpdir); 3COUNT(@@GLOBAL.tmpdir) 41 51 Expected 6'#---------------------BS_STVARS_052_02----------------------#' 7SET @@GLOBAL.tmpdir=1; 8ERROR HY000: Variable 'tmpdir' is a read only variable 9Expected error 'Read only variable' 10SELECT COUNT(@@GLOBAL.tmpdir); 11COUNT(@@GLOBAL.tmpdir) 121 131 Expected 14'#---------------------BS_STVARS_052_03----------------------#' 15SELECT @@GLOBAL.tmpdir = VARIABLE_VALUE 16FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 17WHERE VARIABLE_NAME='tmpdir'; 18@@GLOBAL.tmpdir = VARIABLE_VALUE 191 201 Expected 21SELECT COUNT(@@GLOBAL.tmpdir); 22COUNT(@@GLOBAL.tmpdir) 231 241 Expected 25SELECT COUNT(VARIABLE_VALUE) 26FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 27WHERE VARIABLE_NAME='tmpdir'; 28COUNT(VARIABLE_VALUE) 291 301 Expected 31'#---------------------BS_STVARS_052_04----------------------#' 32SELECT @@tmpdir = @@GLOBAL.tmpdir; 33@@tmpdir = @@GLOBAL.tmpdir 341 351 Expected 36'#---------------------BS_STVARS_052_05----------------------#' 37SELECT COUNT(@@tmpdir); 38COUNT(@@tmpdir) 391 401 Expected 41SELECT COUNT(@@local.tmpdir); 42ERROR HY000: Variable 'tmpdir' is a GLOBAL variable 43Expected error 'Variable is a GLOBAL variable' 44SELECT COUNT(@@SESSION.tmpdir); 45ERROR HY000: Variable 'tmpdir' is a GLOBAL variable 46Expected error 'Variable is a GLOBAL variable' 47SELECT COUNT(@@GLOBAL.tmpdir); 48COUNT(@@GLOBAL.tmpdir) 491 501 Expected 51SELECT tmpdir = @@SESSION.tmpdir; 52ERROR 42S22: Unknown column 'tmpdir' in 'field list' 53Expected error 'Readonly variable' 54