| 1 |
# Variable Name: mysqlx_ssl_key # |
| 2 |
# Scope: Global # |
| 3 |
# Access Type: Static # |
| 4 |
# Data Type: filename # |
| 5 |
|
| 6 |
|
| 7 |
#################################################################### |
| 8 |
# Displaying default value # |
| 9 |
#################################################################### |
| 10 |
SELECT COUNT(@@GLOBAL.mysqlx_ssl_key); |
| 11 |
#################################################################### |
| 12 |
# Check if Value can set # |
| 13 |
#################################################################### |
| 14 |
--error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 15 |
SET @@GLOBAL.mysqlx_ssl_key=1; |
| 16 |
--echo Expected error 'Read only variable' |
| 17 |
SELECT COUNT(@@GLOBAL.mysqlx_ssl_key); |
| 18 |
################################################################# |
| 19 |
# Check if the value in GLOBAL Table matches value in variable # |
| 20 |
################################################################# |
| 21 |
--disable_warnings |
| 22 |
SELECT @@GLOBAL.mysqlx_ssl_key = VARIABLE_VALUE |
| 23 |
FROM performance_schema.global_variables |
| 24 |
WHERE VARIABLE_NAME='mysqlx_ssl_key'; |
| 25 |
SELECT COUNT(VARIABLE_VALUE) |
| 26 |
FROM performance_schema.global_variables |
| 27 |
WHERE VARIABLE_NAME='mysqlx_ssl_key'; |
| 28 |
--enable_warnings |
| 29 |
################################################################################ |
| 30 |
# Check if accessing variable with and without GLOBAL point to same variable # |
| 31 |
################################################################################ |
| 32 |
SELECT @@mysqlx_ssl_key = @@GLOBAL.mysqlx_ssl_key; |
| 33 |
################################################################################ |
| 34 |
# Check if mysqlx_ssl_key can be accessed with and without @@ sign # |
| 35 |
################################################################################ |
| 36 |
SELECT COUNT(@@mysqlx_ssl_key); |
| 37 |
|
| 38 |
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 39 |
SELECT COUNT(@@local.mysqlx_ssl_key); |
| 40 |
--echo Expected error 'Variable is a GLOBAL variable' |
| 41 |
|
| 42 |
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR |
| 43 |
SELECT COUNT(@@SESSION.mysqlx_ssl_key); |
| 44 |
--echo Expected error 'Variable is a GLOBAL variable' |
| 45 |
|
| 46 |
SELECT COUNT(@@GLOBAL.mysqlx_ssl_key); |
| 47 |
|
| 48 |
--Error ER_BAD_FIELD_ERROR |
| 49 |
SELECT mysqlx_ssl_key; |
| 50 |
--echo Expected error 'Unknown column' |
| 51 |
|