mariadb/mysql-test/suite/sys_vars/r/have_csv_basic.result

53 lines
1.5 KiB
Text

'#---------------------BS_STVARS_008_01----------------------#'
SELECT COUNT(@@GLOBAL.have_csv);
COUNT(@@GLOBAL.have_csv)
1
1 Expected
'#---------------------BS_STVARS_008_02----------------------#'
SET @@GLOBAL.have_csv=1;
ERROR HY000: Variable 'have_csv' is a read only variable
Expected error 'Read only variable'
SELECT COUNT(@@GLOBAL.have_csv);
COUNT(@@GLOBAL.have_csv)
1
1 Expected
'#---------------------BS_STVARS_008_03----------------------#'
SELECT @@GLOBAL.have_csv = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='have_csv';
@@GLOBAL.have_csv = VARIABLE_VALUE
1
1 Expected
SELECT COUNT(@@GLOBAL.have_csv);
COUNT(@@GLOBAL.have_csv)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='have_csv';
COUNT(VARIABLE_VALUE)
1
1 Expected
'#---------------------BS_STVARS_008_04----------------------#'
SELECT @@have_csv = @@GLOBAL.have_csv;
@@have_csv = @@GLOBAL.have_csv
1
1 Expected
'#---------------------BS_STVARS_008_05----------------------#'
SELECT COUNT(@@have_csv);
COUNT(@@have_csv)
1
1 Expected
SELECT COUNT(@@local.have_csv);
ERROR HY000: Variable 'have_csv' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@SESSION.have_csv);
ERROR HY000: Variable 'have_csv' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT COUNT(@@GLOBAL.have_csv);
COUNT(@@GLOBAL.have_csv)
1
1 Expected
SELECT have_csv = @@SESSION.have_csv;
ERROR 42S22: Unknown column 'have_csv' in 'field list'
Expected error 'Readonly variable'