mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
55 lines
1.6 KiB
Text
55 lines
1.6 KiB
Text
|
'#---------------------BS_STVARS_057_01----------------------#'
|
||
|
SELECT COUNT(@@SESSION.warning_count);
|
||
|
COUNT(@@SESSION.warning_count)
|
||
|
1
|
||
|
1 Expected
|
||
|
'#---------------------BS_STVARS_057_02----------------------#'
|
||
|
SET @@SESSION.warning_count=1;
|
||
|
ERROR HY000: Variable 'warning_count' is a read only variable
|
||
|
Expected error 'Read only variable'
|
||
|
SELECT COUNT(@@SESSION.warning_count);
|
||
|
COUNT(@@SESSION.warning_count)
|
||
|
1
|
||
|
1 Expected
|
||
|
'#---------------------BS_STVARS_057_03----------------------#'
|
||
|
SELECT @@SESSION.warning_count = VARIABLE_VALUE
|
||
|
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||
|
WHERE VARIABLE_NAME='warning_count';
|
||
|
@@SESSION.warning_count = VARIABLE_VALUE
|
||
|
1
|
||
|
1 Expected
|
||
|
SELECT COUNT(@@SESSION.warning_count);
|
||
|
COUNT(@@SESSION.warning_count)
|
||
|
1
|
||
|
1 Expected
|
||
|
SELECT COUNT(VARIABLE_VALUE)
|
||
|
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||
|
WHERE VARIABLE_NAME='warning_count';
|
||
|
COUNT(VARIABLE_VALUE)
|
||
|
1
|
||
|
1 Expected
|
||
|
'#---------------------BS_STVARS_057_04----------------------#'
|
||
|
SELECT @@warning_count = @@SESSION.warning_count;
|
||
|
@@warning_count = @@SESSION.warning_count
|
||
|
1
|
||
|
1 Expected
|
||
|
'#---------------------BS_STVARS_057_05----------------------#'
|
||
|
SELECT COUNT(@@warning_count);
|
||
|
COUNT(@@warning_count)
|
||
|
1
|
||
|
1 Expected
|
||
|
SELECT COUNT(@@local.warning_count);
|
||
|
COUNT(@@local.warning_count)
|
||
|
1
|
||
|
1 Expected
|
||
|
SELECT COUNT(@@SESSION.warning_count);
|
||
|
COUNT(@@SESSION.warning_count)
|
||
|
1
|
||
|
1 Expected
|
||
|
SELECT COUNT(@@GLOBAL.warning_count);
|
||
|
ERROR HY000: Variable 'warning_count' is a SESSION variable
|
||
|
Expected error 'Variable is a SESSION variable'
|
||
|
SELECT COUNT(warning_count = @@GLOBAL.warning_count);
|
||
|
ERROR 42S22: Unknown column 'warning_count' in 'field list'
|
||
|
Expected error 'Readonly variable'
|