47 lines
2.3 KiB
Plaintext
47 lines
2.3 KiB
Plaintext
# Variable Name: mysqlx_ssl_cipher #
|
|
# Scope: Global #
|
|
# Access Type: Static #
|
|
# Data Type: filename #
|
|
|
|
####################################################################
|
|
# Displaying default value #
|
|
####################################################################
|
|
SELECT COUNT(@@GLOBAL.mysqlx_ssl_cipher);
|
|
####################################################################
|
|
# Check if Value can set #
|
|
####################################################################
|
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SET @@GLOBAL.mysqlx_ssl_cipher=1;
|
|
--echo Expected error 'Read only variable'
|
|
#################################################################
|
|
# Check if the value in GLOBAL Table matches value in variable #
|
|
#################################################################
|
|
--disable_warnings
|
|
SELECT @@GLOBAL.mysqlx_ssl_cipher = VARIABLE_VALUE
|
|
FROM performance_schema.global_variables
|
|
WHERE VARIABLE_NAME='mysqlx_ssl_cipher';
|
|
SELECT COUNT(VARIABLE_VALUE)
|
|
FROM performance_schema.global_variables
|
|
WHERE VARIABLE_NAME='mysqlx_ssl_cipher';
|
|
--enable_warnings
|
|
################################################################################
|
|
# Check if accessing variable with and without GLOBAL point to same variable #
|
|
################################################################################
|
|
SELECT @@mysqlx_ssl_cipher = @@GLOBAL.mysqlx_ssl_cipher;
|
|
################################################################################
|
|
# Check if mysqlx_ssl_cipher can be accessed with and without @@ sign #
|
|
################################################################################
|
|
SELECT COUNT(@@mysqlx_ssl_cipher);
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT COUNT(@@local.mysqlx_ssl_cipher);
|
|
--echo Expected error 'Variable is a GLOBAL variable'
|
|
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
|
SELECT COUNT(@@SESSION.mysqlx_ssl_cipher);
|
|
--echo Expected error 'Variable is a GLOBAL variable'
|
|
SELECT COUNT(@@GLOBAL.mysqlx_ssl_cipher);
|
|
--Error ER_BAD_FIELD_ERROR
|
|
SELECT mysqlx_ssl_cipher = @@SESSION.mysqlx_ssl_cipher;
|
|
--echo Expected error 'Readonly variable'
|
|
|
|
|