mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#4681: Took the system variable tests out of the main test suite, put them into "sys_vars", updated some reult files and tests.
This commit is contained in:
54
mysql-test/suite/sys_vars/r/error_count_basic.result
Normal file
54
mysql-test/suite/sys_vars/r/error_count_basic.result
Normal file
@ -0,0 +1,54 @@
|
||||
'#---------------------BS_STVARS_005_01----------------------#'
|
||||
SELECT COUNT(@@SESSION.error_count);
|
||||
COUNT(@@SESSION.error_count)
|
||||
1
|
||||
1 Expected
|
||||
'#---------------------BS_STVARS_005_02----------------------#'
|
||||
SET @@SESSION.error_count=1;
|
||||
ERROR HY000: Variable 'error_count' is a read only variable
|
||||
Expected error 'Read only variable'
|
||||
SELECT COUNT(@@SESSION.error_count);
|
||||
COUNT(@@SESSION.error_count)
|
||||
1
|
||||
1 Expected
|
||||
'#---------------------BS_STVARS_005_03----------------------#'
|
||||
SELECT @@SESSION.error_count = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='error_count';
|
||||
@@SESSION.error_count = VARIABLE_VALUE
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(@@SESSION.error_count);
|
||||
COUNT(@@SESSION.error_count)
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='error_count';
|
||||
COUNT(VARIABLE_VALUE)
|
||||
1
|
||||
1 Expected
|
||||
'#---------------------BS_STVARS_005_04----------------------#'
|
||||
SELECT @@error_count = @@SESSION.error_count;
|
||||
@@error_count = @@SESSION.error_count
|
||||
1
|
||||
1 Expected
|
||||
'#---------------------BS_STVARS_005_05----------------------#'
|
||||
SELECT COUNT(@@error_count);
|
||||
COUNT(@@error_count)
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(@@local.error_count);
|
||||
COUNT(@@local.error_count)
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(@@SESSION.error_count);
|
||||
COUNT(@@SESSION.error_count)
|
||||
1
|
||||
1 Expected
|
||||
SELECT COUNT(@@GLOBAL.error_count);
|
||||
ERROR HY000: Variable 'error_count' is a SESSION variable
|
||||
Expected error 'Variable is a SESSION variable'
|
||||
SELECT COUNT(error_count = @@GLOBAL.error_count);
|
||||
ERROR 42S22: Unknown column 'error_count' in 'field list'
|
||||
Expected error 'Readonly variable'
|
Reference in New Issue
Block a user