Commit ffbb2bbc authored by Alexander Barkov's avatar Alexander Barkov

Removing redundant tests for "SET (global|local|session).varname"

This is covered in mysql-test/t/variables.test. There is no sense
to test this for every individual variables.

This is to reduce the coming soon patch for ROW-type routine variables,
which will change the error from ER_PARSE_ERROR to a new error
"unknown structured variable".
parent 81f32145
...@@ -84,12 +84,8 @@ SELECT @@automatic_sp_privileges = @@global.automatic_sp_privileges; ...@@ -84,12 +84,8 @@ SELECT @@automatic_sp_privileges = @@global.automatic_sp_privileges;
'#---------------------FN_DYNVARS_004_10----------------------#' '#---------------------FN_DYNVARS_004_10----------------------#'
SET automatic_sp_privileges = 1; SET automatic_sp_privileges = 1;
ERROR HY000: Variable 'automatic_sp_privileges' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'automatic_sp_privileges' is a GLOBAL variable and should be set with SET GLOBAL
SET local.automatic_sp_privileges = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'automatic_sp_privileges = 1' at line 1
SELECT local.automatic_sp_privileges; SELECT local.automatic_sp_privileges;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.automatic_sp_privileges = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'automatic_sp_privileges = 1' at line 1
SELECT global.automatic_sp_privileges; SELECT global.automatic_sp_privileges;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT automatic_sp_privileges = @@session.automatic_sp_privileges; SELECT automatic_sp_privileges = @@session.automatic_sp_privileges;
......
...@@ -86,12 +86,8 @@ SET big_tables = 1; ...@@ -86,12 +86,8 @@ SET big_tables = 1;
SELECT @@big_tables; SELECT @@big_tables;
@@big_tables @@big_tables
1 1
SET local.big_tables = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'big_tables = 1' at line 1
SELECT local.big_tables; SELECT local.big_tables;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.big_tables = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'big_tables = 1' at line 1
SELECT session.big_tables; SELECT session.big_tables;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
select big_tables; select big_tables;
......
...@@ -96,8 +96,6 @@ SELECT @@binlog_cache_size = @@global.binlog_cache_size; ...@@ -96,8 +96,6 @@ SELECT @@binlog_cache_size = @@global.binlog_cache_size;
'#---------------------FN_DYNVARS_006_09----------------------#' '#---------------------FN_DYNVARS_006_09----------------------#'
SET binlog_cache_size = 1; SET binlog_cache_size = 1;
ERROR HY000: Variable 'binlog_cache_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'binlog_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
SET global.binlog_cache_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'binlog_cache_size = 1' at line 1
SELECT global.binlog_cache_size; SELECT global.binlog_cache_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT binlog_cache_size = @@session.binlog_cache_size; SELECT binlog_cache_size = @@session.binlog_cache_size;
......
...@@ -96,8 +96,6 @@ SELECT @@binlog_stmt_cache_size = @@global.binlog_stmt_cache_size; ...@@ -96,8 +96,6 @@ SELECT @@binlog_stmt_cache_size = @@global.binlog_stmt_cache_size;
'#---------------------FN_DYNVARS_006_09----------------------#' '#---------------------FN_DYNVARS_006_09----------------------#'
SET binlog_stmt_cache_size = 1; SET binlog_stmt_cache_size = 1;
ERROR HY000: Variable 'binlog_stmt_cache_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'binlog_stmt_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
SET global.binlog_stmt_cache_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'binlog_stmt_cache_size = 1' at line 1
SELECT global.binlog_stmt_cache_size; SELECT global.binlog_stmt_cache_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT binlog_stmt_cache_size = @@session.binlog_stmt_cache_size; SELECT binlog_stmt_cache_size = @@session.binlog_stmt_cache_size;
......
...@@ -133,12 +133,8 @@ SET bulk_insert_buffer_size = 1; ...@@ -133,12 +133,8 @@ SET bulk_insert_buffer_size = 1;
SELECT @@bulk_insert_buffer_size; SELECT @@bulk_insert_buffer_size;
@@bulk_insert_buffer_size @@bulk_insert_buffer_size
1 1
SET local.bulk_insert_buffer_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'bulk_insert_buffer_size = 1' at line 1
SELECT local.bulk_insert_buffer_size; SELECT local.bulk_insert_buffer_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.bulk_insert_buffer_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'bulk_insert_buffer_size = 1' at line 1
SELECT session.bulk_insert_buffer_size; SELECT session.bulk_insert_buffer_size;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT bulk_insert_buffer_size = @@session.bulk_insert_buffer_size; SELECT bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
......
...@@ -21,8 +21,6 @@ SET character_set_client=utf8; ...@@ -21,8 +21,6 @@ SET character_set_client=utf8;
SELECT @@session.character_set_client; SELECT @@session.character_set_client;
@@session.character_set_client @@session.character_set_client
utf8 utf8
SET global.character_set_client=utf8;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'character_set_client=utf8' at line 1
SET session character_set_client=utf8; SET session character_set_client=utf8;
SELECT session character_set_client; SELECT session character_set_client;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET character_set_connection=utf8; ...@@ -21,8 +21,6 @@ SET character_set_connection=utf8;
SELECT @@session.character_set_connection; SELECT @@session.character_set_connection;
@@session.character_set_connection @@session.character_set_connection
utf8 utf8
SET global.character_set_connection=utf8;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'character_set_connection=utf8' at line 1
SET session character_set_connection=utf8; SET session character_set_connection=utf8;
SELECT session character_set_connection; SELECT session character_set_connection;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET character_set_database=utf8; ...@@ -21,8 +21,6 @@ SET character_set_database=utf8;
SELECT @@session.character_set_database; SELECT @@session.character_set_database;
@@session.character_set_database @@session.character_set_database
utf8 utf8
SET global.character_set_database=utf8;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'character_set_database=utf8' at line 1
SET session character_set_database=utf8; SET session character_set_database=utf8;
SELECT session character_set_database; SELECT session character_set_database;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET character_set_filesystem=utf8; ...@@ -21,8 +21,6 @@ SET character_set_filesystem=utf8;
SELECT @@session.character_set_filesystem; SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem @@session.character_set_filesystem
utf8 utf8
SET global.character_set_filesystem=utf8;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'character_set_filesystem=utf8' at line 1
SET session character_set_filesystem=utf8; SET session character_set_filesystem=utf8;
SELECT session character_set_filesystem; SELECT session character_set_filesystem;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET character_set_server=utf8; ...@@ -21,8 +21,6 @@ SET character_set_server=utf8;
SELECT @@session.character_set_server; SELECT @@session.character_set_server;
@@session.character_set_server @@session.character_set_server
utf8 utf8
SET global.character_set_server=utf8;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'character_set_server=utf8' at line 1
SET session character_set_server=utf8; SET session character_set_server=utf8;
SELECT session character_set_server; SELECT session character_set_server;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET collation_connection=utf8_unicode_ci; ...@@ -21,8 +21,6 @@ SET collation_connection=utf8_unicode_ci;
SELECT @@session.collation_connection; SELECT @@session.collation_connection;
@@session.collation_connection @@session.collation_connection
utf8_unicode_ci utf8_unicode_ci
SET global.collation_connection=utf8_unicode_ci;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'collation_connection=utf8_unicode_ci' at line 1
SET session collation_connection=utf8_unicode_ci; SET session collation_connection=utf8_unicode_ci;
SELECT session collation_connection; SELECT session collation_connection;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET collation_database=utf8_unicode_ci; ...@@ -21,8 +21,6 @@ SET collation_database=utf8_unicode_ci;
SELECT @@session.collation_database; SELECT @@session.collation_database;
@@session.collation_database @@session.collation_database
utf8_unicode_ci utf8_unicode_ci
SET global.collation_database=utf8_unicode_ci;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'collation_database=utf8_unicode_ci' at line 1
SET session collation_database=utf8_unicode_ci; SET session collation_database=utf8_unicode_ci;
SELECT session collation_database; SELECT session collation_database;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -21,8 +21,6 @@ SET collation_server=utf8_unicode_ci; ...@@ -21,8 +21,6 @@ SET collation_server=utf8_unicode_ci;
SELECT @@session.collation_server; SELECT @@session.collation_server;
@@session.collation_server @@session.collation_server
utf8_unicode_ci utf8_unicode_ci
SET global.collation_server=utf8_unicode_ci;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'collation_server=utf8_unicode_ci' at line 1
SET session collation_server=utf8_unicode_ci; SET session collation_server=utf8_unicode_ci;
SELECT session collation_server; SELECT session collation_server;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -118,12 +118,8 @@ SET completion_type = 1; ...@@ -118,12 +118,8 @@ SET completion_type = 1;
SELECT @@completion_type; SELECT @@completion_type;
@@completion_type @@completion_type
CHAIN CHAIN
SET local.completion_type = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'completion_type = 1' at line 1
SELECT local.completion_type; SELECT local.completion_type;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.completion_type = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'completion_type = 1' at line 1
SELECT session.completion_type; SELECT session.completion_type;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT completion_type = @@session.completion_type; SELECT completion_type = @@session.completion_type;
......
...@@ -101,8 +101,6 @@ ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set ...@@ -101,8 +101,6 @@ ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set
SELECT @@concurrent_insert; SELECT @@concurrent_insert;
@@concurrent_insert @@concurrent_insert
AUTO AUTO
SET global.concurrent_insert = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'concurrent_insert = 1' at line 1
SELECT global.concurrent_insert; SELECT global.concurrent_insert;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT concurrent_insert = @@session.concurrent_insert; SELECT concurrent_insert = @@session.concurrent_insert;
......
...@@ -81,8 +81,6 @@ SELECT @@connect_timeout = @@global.connect_timeout; ...@@ -81,8 +81,6 @@ SELECT @@connect_timeout = @@global.connect_timeout;
'#---------------------FN_DYNVARS_019_09----------------------#' '#---------------------FN_DYNVARS_019_09----------------------#'
SET connect_timeout = 1; SET connect_timeout = 1;
ERROR HY000: Variable 'connect_timeout' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'connect_timeout' is a GLOBAL variable and should be set with SET GLOBAL
SET global.connect_timeout = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'connect_timeout = 1' at line 1
SELECT global.connect_timeout; SELECT global.connect_timeout;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT connect_timeout = @@session.connect_timeout; SELECT connect_timeout = @@session.connect_timeout;
......
...@@ -78,12 +78,8 @@ SET default_master_connection = 'foo'; ...@@ -78,12 +78,8 @@ SET default_master_connection = 'foo';
SELECT @@default_master_connection; SELECT @@default_master_connection;
@@default_master_connection @@default_master_connection
foo foo
SET local.default_master_connection = 'foo';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'default_master_connection = 'foo'' at line 1
SELECT local.default_master_connection; SELECT local.default_master_connection;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.default_master_connection = 'foo';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'default_master_connection = 'foo'' at line 1
SELECT session.default_master_connection; SELECT session.default_master_connection;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT default_master_connection = @@session.default_master_connection; SELECT default_master_connection = @@session.default_master_connection;
......
...@@ -151,12 +151,8 @@ SET default_week_format = 1; ...@@ -151,12 +151,8 @@ SET default_week_format = 1;
SELECT @@default_week_format; SELECT @@default_week_format;
@@default_week_format @@default_week_format
1 1
SET local.default_week_format = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'default_week_format = 1' at line 1
SELECT local.default_week_format; SELECT local.default_week_format;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.default_week_format = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'default_week_format = 1' at line 1
SELECT session.default_week_format; SELECT session.default_week_format;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT default_week_format = @@session.default_week_format; SELECT default_week_format = @@session.default_week_format;
......
...@@ -95,12 +95,8 @@ ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable and should be ...@@ -95,12 +95,8 @@ ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable and should be
SELECT @@delayed_insert_limit; SELECT @@delayed_insert_limit;
@@delayed_insert_limit @@delayed_insert_limit
1 1
SET local.delayed_insert_limit = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_insert_limit = 1' at line 1
SELECT local.delayed_insert_limit; SELECT local.delayed_insert_limit;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.delayed_insert_limit = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_insert_limit = 1' at line 1
SELECT global.delayed_insert_limit; SELECT global.delayed_insert_limit;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT delayed_insert_limit = @@session.delayed_insert_limit; SELECT delayed_insert_limit = @@session.delayed_insert_limit;
......
...@@ -93,12 +93,8 @@ ERROR HY000: Variable 'delayed_insert_timeout' is a GLOBAL variable and should b ...@@ -93,12 +93,8 @@ ERROR HY000: Variable 'delayed_insert_timeout' is a GLOBAL variable and should b
SELECT @@delayed_insert_timeout; SELECT @@delayed_insert_timeout;
@@delayed_insert_timeout @@delayed_insert_timeout
1 1
SET local.delayed_insert_timeout = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_insert_timeout = 1' at line 1
SELECT local.delayed_insert_timeout; SELECT local.delayed_insert_timeout;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.delayed_insert_timeout = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_insert_timeout = 1' at line 1
SELECT global.delayed_insert_timeout; SELECT global.delayed_insert_timeout;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT delayed_insert_timeout = @@session.delayed_insert_timeout; SELECT delayed_insert_timeout = @@session.delayed_insert_timeout;
......
...@@ -93,12 +93,8 @@ ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be se ...@@ -93,12 +93,8 @@ ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be se
SELECT @@delayed_queue_size; SELECT @@delayed_queue_size;
@@delayed_queue_size @@delayed_queue_size
1 1
SET local.delayed_queue_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_queue_size = 1' at line 1
SELECT local.delayed_queue_size; SELECT local.delayed_queue_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.delayed_queue_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_queue_size = 1' at line 1
SELECT global.delayed_queue_size; SELECT global.delayed_queue_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT delayed_queue_size = @@session.delayed_queue_size; SELECT delayed_queue_size = @@session.delayed_queue_size;
......
...@@ -167,12 +167,8 @@ SET div_precision_increment = 1; ...@@ -167,12 +167,8 @@ SET div_precision_increment = 1;
SELECT @@div_precision_increment; SELECT @@div_precision_increment;
@@div_precision_increment @@div_precision_increment
1 1
SET local.div_precision_increment = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'div_precision_increment = 1' at line 1
SELECT local.div_precision_increment; SELECT local.div_precision_increment;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.div_precision_increment = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'div_precision_increment = 1' at line 1
SELECT session.div_precision_increment; SELECT session.div_precision_increment;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT div_precision_increment = @@session.div_precision_increment; SELECT div_precision_increment = @@session.div_precision_increment;
......
...@@ -83,12 +83,8 @@ SELECT @@event_scheduler = @@global.event_scheduler; ...@@ -83,12 +83,8 @@ SELECT @@event_scheduler = @@global.event_scheduler;
'#---------------------FN_DYNVARS_004_09----------------------#' '#---------------------FN_DYNVARS_004_09----------------------#'
SET event_scheduler = ON; SET event_scheduler = ON;
ERROR HY000: Variable 'event_scheduler' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'event_scheduler' is a GLOBAL variable and should be set with SET GLOBAL
SET local.event_scheduler = OFF;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'event_scheduler = OFF' at line 1
SELECT local.event_scheduler; SELECT local.event_scheduler;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.event_scheduler = ON;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'event_scheduler = ON' at line 1
SELECT global.event_scheduler; SELECT global.event_scheduler;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT event_scheduler = @@session.event_scheduler; SELECT event_scheduler = @@session.event_scheduler;
......
...@@ -113,12 +113,8 @@ ERROR HY000: Variable 'expire_logs_days' is a GLOBAL variable and should be set ...@@ -113,12 +113,8 @@ ERROR HY000: Variable 'expire_logs_days' is a GLOBAL variable and should be set
SELECT @@expire_logs_days; SELECT @@expire_logs_days;
@@expire_logs_days @@expire_logs_days
1 1
SET local.expire_logs_days = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'expire_logs_days = 1' at line 1
SELECT local.expire_logs_days; SELECT local.expire_logs_days;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.expire_logs_days = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'expire_logs_days = 1' at line 1
SELECT global.expire_logs_days; SELECT global.expire_logs_days;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT expire_logs_days = @@session.expire_logs_days; SELECT expire_logs_days = @@session.expire_logs_days;
......
...@@ -83,8 +83,6 @@ SELECT @@flush = @@global.flush; ...@@ -83,8 +83,6 @@ SELECT @@flush = @@global.flush;
'#---------------------FN_DYNVARS_030_09----------------------#' '#---------------------FN_DYNVARS_030_09----------------------#'
SET flush = 1; SET flush = 1;
ERROR HY000: Variable 'flush' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'flush' is a GLOBAL variable and should be set with SET GLOBAL
SET global.flush = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'flush = 1' at line 1
SELECT global.flush; SELECT global.flush;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT flush = @@session.flush; SELECT flush = @@session.flush;
......
...@@ -78,12 +78,8 @@ SELECT @@general_log = @@global.general_log; ...@@ -78,12 +78,8 @@ SELECT @@general_log = @@global.general_log;
'#---------------------FN_DYNVARS_004_09----------------------#' '#---------------------FN_DYNVARS_004_09----------------------#'
SET general_log = ON; SET general_log = ON;
ERROR HY000: Variable 'general_log' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'general_log' is a GLOBAL variable and should be set with SET GLOBAL
SET local.general_log = OFF;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'general_log = OFF' at line 1
SELECT local.general_log; SELECT local.general_log;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.general_log = ON;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'general_log = ON' at line 1
SELECT global.general_log; SELECT global.general_log;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT general_log = @@session.general_log; SELECT general_log = @@session.general_log;
......
...@@ -108,12 +108,8 @@ SET identity = 1; ...@@ -108,12 +108,8 @@ SET identity = 1;
SELECT @@identity; SELECT @@identity;
@@identity @@identity
1 1
SET local.identity = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'identity = 1' at line 1
SELECT local.identity; SELECT local.identity;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.identity = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'identity = 1' at line 1
SELECT session.identity; SELECT session.identity;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT identity = @@session.identity; SELECT identity = @@session.identity;
......
...@@ -108,12 +108,8 @@ SET insert_id = 1; ...@@ -108,12 +108,8 @@ SET insert_id = 1;
SELECT @@insert_id; SELECT @@insert_id;
@@insert_id @@insert_id
1 1
SET local.insert_id = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insert_id = 1' at line 1
SELECT local.insert_id; SELECT local.insert_id;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET session.insert_id = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'insert_id = 1' at line 1
SELECT session.insert_id; SELECT session.insert_id;
ERROR 42S02: Unknown table 'session' in field list ERROR 42S02: Unknown table 'session' in field list
SELECT insert_id = @@session.insert_id; SELECT insert_id = @@session.insert_id;
......
...@@ -62,12 +62,8 @@ SELECT @@key_buffer_size = @@global.key_buffer_size; ...@@ -62,12 +62,8 @@ SELECT @@key_buffer_size = @@global.key_buffer_size;
'#---------------------FN_DYNVARS_055_09----------------------#' '#---------------------FN_DYNVARS_055_09----------------------#'
SET key_buffer_size = 8 ; SET key_buffer_size = 8 ;
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL
SET local.key_buffer_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_buffer_size = 10' at line 1
SELECT local.key_buffer_size; SELECT local.key_buffer_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.key_buffer_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_buffer_size = 10' at line 1
SELECT global.key_buffer_size; SELECT global.key_buffer_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT key_buffer_size = @@session.key_buffer_size; SELECT key_buffer_size = @@session.key_buffer_size;
......
...@@ -115,12 +115,8 @@ ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should ...@@ -115,12 +115,8 @@ ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should
SELECT @@key_cache_age_threshold; SELECT @@key_cache_age_threshold;
@@key_cache_age_threshold @@key_cache_age_threshold
100 100
SET local.key_cache_age_threshold = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_age_threshold = 10' at line 1
SELECT local.key_cache_age_threshold; SELECT local.key_cache_age_threshold;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.key_cache_age_threshold = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_age_threshold = 10' at line 1
SELECT global.key_cache_age_threshold; SELECT global.key_cache_age_threshold;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT key_cache_age_threshold = @@session.key_cache_age_threshold; SELECT key_cache_age_threshold = @@session.key_cache_age_threshold;
......
...@@ -125,12 +125,8 @@ ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable and should be ...@@ -125,12 +125,8 @@ ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable and should be
SELECT @@key_cache_block_size; SELECT @@key_cache_block_size;
@@key_cache_block_size @@key_cache_block_size
1024 1024
SET local.key_cache_block_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_block_size = 10' at line 1
SELECT local.key_cache_block_size; SELECT local.key_cache_block_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.key_cache_block_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_block_size = 10' at line 1
SELECT global.key_cache_block_size; SELECT global.key_cache_block_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT key_cache_block_size = @@session.key_cache_block_size; SELECT key_cache_block_size = @@session.key_cache_block_size;
......
...@@ -119,12 +119,8 @@ ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable and should ...@@ -119,12 +119,8 @@ ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable and should
SELECT @@key_cache_division_limit; SELECT @@key_cache_division_limit;
@@key_cache_division_limit @@key_cache_division_limit
90 90
SET local.key_cache_division_limit = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_division_limit = 10' at line 1
SELECT local.key_cache_division_limit; SELECT local.key_cache_division_limit;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.key_cache_division_limit = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_division_limit = 10' at line 1
SELECT global.key_cache_division_limit; SELECT global.key_cache_division_limit;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT key_cache_division_limit = @@session.key_cache_division_limit; SELECT key_cache_division_limit = @@session.key_cache_division_limit;
......
...@@ -98,12 +98,8 @@ ERROR HY000: Variable 'key_cache_file_hash_size' is a GLOBAL variable and should ...@@ -98,12 +98,8 @@ ERROR HY000: Variable 'key_cache_file_hash_size' is a GLOBAL variable and should
SELECT @@key_cache_file_hash_size; SELECT @@key_cache_file_hash_size;
@@key_cache_file_hash_size @@key_cache_file_hash_size
150 150
SET local.key_cache_file_hash_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_file_hash_size = 10' at line 1
SELECT local.key_cache_file_hash_size; SELECT local.key_cache_file_hash_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.key_cache_file_hash_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_file_hash_size = 10' at line 1
SELECT global.key_cache_file_hash_size; SELECT global.key_cache_file_hash_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT key_cache_file_hash_size = @@session.key_cache_file_hash_size; SELECT key_cache_file_hash_size = @@session.key_cache_file_hash_size;
......
...@@ -21,8 +21,6 @@ SET lc_time_names=ar_AE; ...@@ -21,8 +21,6 @@ SET lc_time_names=ar_AE;
SELECT @@session.lc_time_names; SELECT @@session.lc_time_names;
@@session.lc_time_names @@session.lc_time_names
ar_AE ar_AE
SET global.lc_time_names=ar_AE;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'lc_time_names=ar_AE' at line 1
SET session lc_time_names=ar_AE; SET session lc_time_names=ar_AE;
SELECT session lc_time_names; SELECT session lc_time_names;
ERROR 42S22: Unknown column 'session' in 'field list' ERROR 42S22: Unknown column 'session' in 'field list'
......
...@@ -87,8 +87,6 @@ ERROR HY000: Variable 'local_infile' is a GLOBAL variable and should be set with ...@@ -87,8 +87,6 @@ ERROR HY000: Variable 'local_infile' is a GLOBAL variable and should be set with
SELECT @@local_infile; SELECT @@local_infile;
@@local_infile @@local_infile
1 1
SET global.local_infile = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'local_infile = 1' at line 1
SELECT global.local_infile; SELECT global.local_infile;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT local_infile = @@session.local_infile; SELECT local_infile = @@session.local_infile;
......
...@@ -137,12 +137,8 @@ ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable and should be ...@@ -137,12 +137,8 @@ ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable and should be
SELECT @@max_binlog_cache_size; SELECT @@max_binlog_cache_size;
@@max_binlog_cache_size @@max_binlog_cache_size
4096 4096
SET local.max_binlog_cache_size = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_binlog_cache_size = 7000' at line 1
SELECT local.max_binlog_cache_size; SELECT local.max_binlog_cache_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_binlog_cache_size = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_binlog_cache_size = 8000' at line 1
SELECT global.max_binlog_cache_size; SELECT global.max_binlog_cache_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_binlog_cache_size = @@session.max_binlog_cache_size; SELECT max_binlog_cache_size = @@session.max_binlog_cache_size;
......
...@@ -136,12 +136,8 @@ ERROR HY000: Variable 'max_binlog_size' is a GLOBAL variable and should be set w ...@@ -136,12 +136,8 @@ ERROR HY000: Variable 'max_binlog_size' is a GLOBAL variable and should be set w
SELECT @@max_binlog_size; SELECT @@max_binlog_size;
@@max_binlog_size @@max_binlog_size
4096 4096
SET local.max_binlog_size = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_binlog_size = 7000' at line 1
SELECT local.max_binlog_size; SELECT local.max_binlog_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_binlog_size = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_binlog_size = 8000' at line 1
SELECT global.max_binlog_size; SELECT global.max_binlog_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_binlog_size = @@session.max_binlog_size; SELECT max_binlog_size = @@session.max_binlog_size;
......
...@@ -137,12 +137,8 @@ ERROR HY000: Variable 'max_binlog_stmt_cache_size' is a GLOBAL variable and shou ...@@ -137,12 +137,8 @@ ERROR HY000: Variable 'max_binlog_stmt_cache_size' is a GLOBAL variable and shou
SELECT @@max_binlog_stmt_cache_size; SELECT @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size @@max_binlog_stmt_cache_size
4096 4096
SET local.max_binlog_stmt_cache_size = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_binlog_stmt_cache_size = 7000' at line 1
SELECT local.max_binlog_stmt_cache_size; SELECT local.max_binlog_stmt_cache_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_binlog_stmt_cache_size = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_binlog_stmt_cache_size = 8000' at line 1
SELECT global.max_binlog_stmt_cache_size; SELECT global.max_binlog_stmt_cache_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_binlog_stmt_cache_size = @@session.max_binlog_stmt_cache_size; SELECT max_binlog_stmt_cache_size = @@session.max_binlog_stmt_cache_size;
......
...@@ -118,12 +118,8 @@ ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable and should be se ...@@ -118,12 +118,8 @@ ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable and should be se
SELECT @@max_connect_errors; SELECT @@max_connect_errors;
@@max_connect_errors @@max_connect_errors
5000 5000
SET local.max_connect_errors = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_connect_errors = 7000' at line 1
SELECT local.max_connect_errors; SELECT local.max_connect_errors;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_connect_errors = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_connect_errors = 8000' at line 1
SELECT global.max_connect_errors; SELECT global.max_connect_errors;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_connect_errors = @@session.max_connect_errors; SELECT max_connect_errors = @@session.max_connect_errors;
......
...@@ -118,12 +118,8 @@ ERROR HY000: Variable 'max_connections' is a GLOBAL variable and should be set w ...@@ -118,12 +118,8 @@ ERROR HY000: Variable 'max_connections' is a GLOBAL variable and should be set w
SELECT @@max_connections; SELECT @@max_connections;
@@max_connections @@max_connections
5000 5000
SET local.max_connections = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_connections = 7000' at line 1
SELECT local.max_connections; SELECT local.max_connections;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_connections = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_connections = 8000' at line 1
SELECT global.max_connections; SELECT global.max_connections;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_connections = @@session.max_connections; SELECT max_connections = @@session.max_connections;
......
...@@ -116,12 +116,8 @@ ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should ...@@ -116,12 +116,8 @@ ERROR HY000: Variable 'max_prepared_stmt_count' is a GLOBAL variable and should
SELECT @@max_prepared_stmt_count; SELECT @@max_prepared_stmt_count;
@@max_prepared_stmt_count @@max_prepared_stmt_count
5000 5000
SET local.max_prepared_stmt_count = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_prepared_stmt_count = 7000' at line 1
SELECT local.max_prepared_stmt_count; SELECT local.max_prepared_stmt_count;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_prepared_stmt_count = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_prepared_stmt_count = 8000' at line 1
SELECT global.max_prepared_stmt_count; SELECT global.max_prepared_stmt_count;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_prepared_stmt_count = @@session.max_prepared_stmt_count; SELECT max_prepared_stmt_count = @@session.max_prepared_stmt_count;
......
...@@ -133,12 +133,8 @@ Warning 1292 Truncated incorrect max_relay_log_size value: '6000' ...@@ -133,12 +133,8 @@ Warning 1292 Truncated incorrect max_relay_log_size value: '6000'
SELECT @@max_relay_log_size; SELECT @@max_relay_log_size;
@@max_relay_log_size @@max_relay_log_size
4096 4096
SET local.max_relay_log_size = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_relay_log_size = 7000' at line 1
SELECT local.max_relay_log_size; SELECT local.max_relay_log_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.max_relay_log_size = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'max_relay_log_size = 8000' at line 1
SELECT global.max_relay_log_size; SELECT global.max_relay_log_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT max_relay_log_size = @@session.max_relay_log_size; SELECT max_relay_log_size = @@session.max_relay_log_size;
......
...@@ -105,10 +105,6 @@ SELECT @@global.myisam_stats_method; ...@@ -105,10 +105,6 @@ SELECT @@global.myisam_stats_method;
NULLS_UNEQUAL NULLS_UNEQUAL
'#---------------------FN_DYNVARS_097_09----------------------#' '#---------------------FN_DYNVARS_097_09----------------------#'
SET myisam_stats_method = 'nulls_equal'; SET myisam_stats_method = 'nulls_equal';
SET session.myisam_stats_method = 'nulls_equal';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'myisam_stats_method = 'nulls_equal'' at line 1
SET global.myisam_stats_method = 'nulls_equal';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'myisam_stats_method = 'nulls_equal'' at line 1
SET session myisam_stats_method = 'nulls_equal'; SET session myisam_stats_method = 'nulls_equal';
SELECT @@myisam_stats_method; SELECT @@myisam_stats_method;
@@myisam_stats_method @@myisam_stats_method
......
...@@ -83,8 +83,6 @@ SELECT @@mysql56_temporal_format = @@global.mysql56_temporal_format; ...@@ -83,8 +83,6 @@ SELECT @@mysql56_temporal_format = @@global.mysql56_temporal_format;
'#---------------------FN_DYNVARS_030_09----------------------#' '#---------------------FN_DYNVARS_030_09----------------------#'
SET mysql56_temporal_format = 1; SET mysql56_temporal_format = 1;
ERROR HY000: Variable 'mysql56_temporal_format' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'mysql56_temporal_format' is a GLOBAL variable and should be set with SET GLOBAL
SET global.mysql56_temporal_format = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysql56_temporal_format = 1' at line 1
SELECT global.mysql56_temporal_format; SELECT global.mysql56_temporal_format;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT mysql56_temporal_format = @@session.mysql56_temporal_format; SELECT mysql56_temporal_format = @@session.mysql56_temporal_format;
......
...@@ -132,10 +132,6 @@ SELECT @@global.old_mode; ...@@ -132,10 +132,6 @@ SELECT @@global.old_mode;
'#---------------------FN_DYNVARS_152_09----------------------#' '#---------------------FN_DYNVARS_152_09----------------------#'
SET old_mode = 'NO_PROGRESS_INFO'; SET old_mode = 'NO_PROGRESS_INFO';
SET session.old_mode = 'ANSI';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'old_mode = 'ANSI'' at line 1
SET global.old_mode = 'ANSI';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'old_mode = 'ANSI'' at line 1
SET session old_mode = 1; SET session old_mode = 1;
SELECT @@old_mode; SELECT @@old_mode;
@@old_mode @@old_mode
......
...@@ -113,12 +113,8 @@ ERROR HY000: Variable 'query_cache_limit' is a GLOBAL variable and should be set ...@@ -113,12 +113,8 @@ ERROR HY000: Variable 'query_cache_limit' is a GLOBAL variable and should be set
SELECT @@query_cache_limit; SELECT @@query_cache_limit;
@@query_cache_limit @@query_cache_limit
1 1
SET local.query_cache_limit = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_limit = 1' at line 1
SELECT local.query_cache_limit; SELECT local.query_cache_limit;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.query_cache_limit = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_limit = 1' at line 1
SELECT global.query_cache_limit; SELECT global.query_cache_limit;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT query_cache_limit = @@session.query_cache_limit; SELECT query_cache_limit = @@session.query_cache_limit;
......
...@@ -133,12 +133,8 @@ ERROR HY000: Variable 'query_cache_min_res_unit' is a GLOBAL variable and should ...@@ -133,12 +133,8 @@ ERROR HY000: Variable 'query_cache_min_res_unit' is a GLOBAL variable and should
SELECT @@query_cache_min_res_unit; SELECT @@query_cache_min_res_unit;
@@query_cache_min_res_unit @@query_cache_min_res_unit
512 512
SET local.query_cache_min_res_unit = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_min_res_unit = 1' at line 1
SELECT local.query_cache_min_res_unit; SELECT local.query_cache_min_res_unit;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.query_cache_min_res_unit = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_min_res_unit = 1' at line 1
SELECT global.query_cache_min_res_unit; SELECT global.query_cache_min_res_unit;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT query_cache_min_res_unit = @@session.query_cache_min_res_unit; SELECT query_cache_min_res_unit = @@session.query_cache_min_res_unit;
......
...@@ -120,12 +120,8 @@ ERROR HY000: Variable 'query_cache_size' is a GLOBAL variable and should be set ...@@ -120,12 +120,8 @@ ERROR HY000: Variable 'query_cache_size' is a GLOBAL variable and should be set
SELECT @@query_cache_size; SELECT @@query_cache_size;
@@query_cache_size @@query_cache_size
0 0
SET local.query_cache_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_size = 1' at line 1
SELECT local.query_cache_size; SELECT local.query_cache_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.query_cache_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'query_cache_size = 1' at line 1
SELECT global.query_cache_size; SELECT global.query_cache_size;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT query_cache_size = @@session.query_cache_size; SELECT query_cache_size = @@session.query_cache_size;
......
...@@ -102,12 +102,8 @@ ERROR HY000: Variable 'read_only' is a GLOBAL variable and should be set with SE ...@@ -102,12 +102,8 @@ ERROR HY000: Variable 'read_only' is a GLOBAL variable and should be set with SE
SELECT @@read_only; SELECT @@read_only;
@@read_only @@read_only
1 1
SET local.read_only = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'read_only = 1' at line 1
SELECT local.read_only; SELECT local.read_only;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.read_only = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'read_only = 1' at line 1
SELECT global.read_only; SELECT global.read_only;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT read_only = @@session.read_only; SELECT read_only = @@session.read_only;
......
...@@ -82,8 +82,6 @@ SELECT @@relay_log_purge = @@global.relay_log_purge; ...@@ -82,8 +82,6 @@ SELECT @@relay_log_purge = @@global.relay_log_purge;
'#---------------------FN_DYNVARS_141_08----------------------#' '#---------------------FN_DYNVARS_141_08----------------------#'
SET relay_log_purge = 1; SET relay_log_purge = 1;
ERROR HY000: Variable 'relay_log_purge' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'relay_log_purge' is a GLOBAL variable and should be set with SET GLOBAL
SET global.relay_log_purge = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'relay_log_purge = 1' at line 1
SELECT global.relay_log_purge; SELECT global.relay_log_purge;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT relay_log_purge = @@session.relay_log_purge; SELECT relay_log_purge = @@session.relay_log_purge;
......
...@@ -131,12 +131,8 @@ ERROR HY000: Variable 'slave_max_allowed_packet' is a GLOBAL variable and should ...@@ -131,12 +131,8 @@ ERROR HY000: Variable 'slave_max_allowed_packet' is a GLOBAL variable and should
SELECT @@slave_max_allowed_packet; SELECT @@slave_max_allowed_packet;
@@slave_max_allowed_packet @@slave_max_allowed_packet
4096 4096
SET local.slave_max_allowed_packet = 7000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slave_max_allowed_packet = 7000' at line 1
SELECT local.slave_max_allowed_packet; SELECT local.slave_max_allowed_packet;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.slave_max_allowed_packet = 8000;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slave_max_allowed_packet = 8000' at line 1
SELECT global.slave_max_allowed_packet; SELECT global.slave_max_allowed_packet;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT slave_max_allowed_packet = @@session.slave_max_allowed_packet; SELECT slave_max_allowed_packet = @@session.slave_max_allowed_packet;
......
...@@ -117,12 +117,8 @@ ERROR HY000: Variable 'slow_launch_time' is a GLOBAL variable and should be set ...@@ -117,12 +117,8 @@ ERROR HY000: Variable 'slow_launch_time' is a GLOBAL variable and should be set
SELECT @@slow_launch_time; SELECT @@slow_launch_time;
@@slow_launch_time @@slow_launch_time
1 1
SET local.slow_launch_time = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slow_launch_time = 1' at line 1
SELECT local.slow_launch_time; SELECT local.slow_launch_time;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.slow_launch_time = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slow_launch_time = 1' at line 1
SELECT global.slow_launch_time; SELECT global.slow_launch_time;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT slow_launch_time = @@session.slow_launch_time; SELECT slow_launch_time = @@session.slow_launch_time;
......
...@@ -84,12 +84,8 @@ SELECT @@slow_query_log = @@global.slow_query_log; ...@@ -84,12 +84,8 @@ SELECT @@slow_query_log = @@global.slow_query_log;
@@slow_query_log = @@global.slow_query_log @@slow_query_log = @@global.slow_query_log
0 0
'#---------------------FN_DYNVARS_004_09----------------------#' '#---------------------FN_DYNVARS_004_09----------------------#'
SET local.slow_query_log = OFF;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slow_query_log = OFF' at line 1
SELECT local.slow_query_log; SELECT local.slow_query_log;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.slow_query_log = ON;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slow_query_log = ON' at line 1
SELECT global.slow_query_log; SELECT global.slow_query_log;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT slow_query_log = @@session.slow_query_log; SELECT slow_query_log = @@session.slow_query_log;
......
...@@ -381,10 +381,6 @@ SELECT @@global.sql_mode; ...@@ -381,10 +381,6 @@ SELECT @@global.sql_mode;
'#---------------------FN_DYNVARS_152_09----------------------#' '#---------------------FN_DYNVARS_152_09----------------------#'
SET sql_mode = 'ANSI'; SET sql_mode = 'ANSI';
SET session.sql_mode = 'ANSI';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sql_mode = 'ANSI'' at line 1
SET global.sql_mode = 'ANSI';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sql_mode = 'ANSI'' at line 1
SET session sql_mode = 1; SET session sql_mode = 1;
SELECT @@sql_mode; SELECT @@sql_mode;
@@sql_mode @@sql_mode
......
...@@ -98,12 +98,8 @@ ERROR HY000: Variable 'sync_binlog' is a GLOBAL variable and should be set with ...@@ -98,12 +98,8 @@ ERROR HY000: Variable 'sync_binlog' is a GLOBAL variable and should be set with
SELECT @@sync_binlog; SELECT @@sync_binlog;
@@sync_binlog @@sync_binlog
4294967295 4294967295
SET local.sync_binlog = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sync_binlog = 1' at line 1
SELECT local.sync_binlog; SELECT local.sync_binlog;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SET global.sync_binlog = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sync_binlog = 1' at line 1
SELECT global.sync_binlog; SELECT global.sync_binlog;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT sync_binlog = @@session.sync_binlog; SELECT sync_binlog = @@session.sync_binlog;
......
...@@ -85,8 +85,6 @@ ERROR HY000: Variable 'sync_frm' is a GLOBAL variable and should be set with SET ...@@ -85,8 +85,6 @@ ERROR HY000: Variable 'sync_frm' is a GLOBAL variable and should be set with SET
SELECT @@sync_frm; SELECT @@sync_frm;
@@sync_frm @@sync_frm
1 1
SET global.sync_frm = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'sync_frm = 1' at line 1
SELECT global.sync_frm; SELECT global.sync_frm;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT sync_frm = @@session.sync_frm; SELECT sync_frm = @@session.sync_frm;
......
...@@ -99,8 +99,6 @@ SELECT @@table_definition_cache = @@global.table_definition_cache; ...@@ -99,8 +99,6 @@ SELECT @@table_definition_cache = @@global.table_definition_cache;
'#---------------------FN_DYNVARS_019_09----------------------#' '#---------------------FN_DYNVARS_019_09----------------------#'
SET table_definition_cache = 1; SET table_definition_cache = 1;
ERROR HY000: Variable 'table_definition_cache' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'table_definition_cache' is a GLOBAL variable and should be set with SET GLOBAL
SET global.table_definition_cache = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'table_definition_cache = 1' at line 1
SELECT global.table_definition_cache; SELECT global.table_definition_cache;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT table_definition_cache = @@session.table_definition_cache; SELECT table_definition_cache = @@session.table_definition_cache;
......
...@@ -95,8 +95,6 @@ SELECT @@table_open_cache = @@global.table_open_cache ; ...@@ -95,8 +95,6 @@ SELECT @@table_open_cache = @@global.table_open_cache ;
'#---------------------FN_DYNVARS_001_11----------------------#' '#---------------------FN_DYNVARS_001_11----------------------#'
SET table_open_cache = 8; SET table_open_cache = 8;
ERROR HY000: Variable 'table_open_cache' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'table_open_cache' is a GLOBAL variable and should be set with SET GLOBAL
SET global.table_open_cache = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'table_open_cache = 10' at line 1
SELECT global.table_open_cache ; SELECT global.table_open_cache ;
ERROR 42S02: Unknown table 'global' in field list ERROR 42S02: Unknown table 'global' in field list
SELECT table_open_cache = @@session.table_open_cache ; SELECT table_open_cache = @@session.table_open_cache ;
......
...@@ -123,10 +123,6 @@ SELECT @@global.tx_isolation; ...@@ -123,10 +123,6 @@ SELECT @@global.tx_isolation;
READ-UNCOMMITTED READ-UNCOMMITTED
'#---------------------FN_DYNVARS_183_09----------------------#' '#---------------------FN_DYNVARS_183_09----------------------#'
SET tx_isolation = 'REPEATABLE-READ'; SET tx_isolation = 'REPEATABLE-READ';
SET session.tx_isolation = 'REPEATABLE-READ';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tx_isolation = 'REPEATABLE-READ'' at line 1
SET global.tx_isolation = 'REPEATABLE-READ';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'tx_isolation = 'REPEATABLE-READ'' at line 1
SET session tx_isolation = 'REPEATABLE-READ'; SET session tx_isolation = 'REPEATABLE-READ';
SELECT @@tx_isolation; SELECT @@tx_isolation;
@@tx_isolation @@tx_isolation
......
...@@ -152,12 +152,8 @@ SELECT @@automatic_sp_privileges = @@global.automatic_sp_privileges; ...@@ -152,12 +152,8 @@ SELECT @@automatic_sp_privileges = @@global.automatic_sp_privileges;
############################################################################### ###############################################################################
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET automatic_sp_privileges = 1; SET automatic_sp_privileges = 1;
--Error ER_PARSE_ERROR
SET local.automatic_sp_privileges = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.automatic_sp_privileges; SELECT local.automatic_sp_privileges;
--Error ER_PARSE_ERROR
SET global.automatic_sp_privileges = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.automatic_sp_privileges; SELECT global.automatic_sp_privileges;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -148,12 +148,8 @@ SELECT @@big_tables = @@local.big_tables and @@local.big_tables = @@session.big_ ...@@ -148,12 +148,8 @@ SELECT @@big_tables = @@local.big_tables and @@local.big_tables = @@session.big_
SET big_tables = 1; SET big_tables = 1;
SELECT @@big_tables; SELECT @@big_tables;
--Error ER_PARSE_ERROR
SET local.big_tables = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.big_tables; SELECT local.big_tables;
--Error ER_PARSE_ERROR
SET session.big_tables = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.big_tables; SELECT session.big_tables;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -134,8 +134,6 @@ SELECT @@binlog_cache_size = @@global.binlog_cache_size; ...@@ -134,8 +134,6 @@ SELECT @@binlog_cache_size = @@global.binlog_cache_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET binlog_cache_size = 1; SET binlog_cache_size = 1;
--Error ER_PARSE_ERROR
SET global.binlog_cache_size = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.binlog_cache_size; SELECT global.binlog_cache_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -134,8 +134,6 @@ SELECT @@binlog_stmt_cache_size = @@global.binlog_stmt_cache_size; ...@@ -134,8 +134,6 @@ SELECT @@binlog_stmt_cache_size = @@global.binlog_stmt_cache_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET binlog_stmt_cache_size = 1; SET binlog_stmt_cache_size = 1;
--Error ER_PARSE_ERROR
SET global.binlog_stmt_cache_size = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.binlog_stmt_cache_size; SELECT global.binlog_stmt_cache_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -181,12 +181,8 @@ SELECT @@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size; ...@@ -181,12 +181,8 @@ SELECT @@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
SET bulk_insert_buffer_size = 1; SET bulk_insert_buffer_size = 1;
SELECT @@bulk_insert_buffer_size; SELECT @@bulk_insert_buffer_size;
--Error ER_PARSE_ERROR
SET local.bulk_insert_buffer_size = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.bulk_insert_buffer_size; SELECT local.bulk_insert_buffer_size;
--Error ER_PARSE_ERROR
SET session.bulk_insert_buffer_size = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.bulk_insert_buffer_size; SELECT session.bulk_insert_buffer_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -62,8 +62,6 @@ SELECT character_set_client; ...@@ -62,8 +62,6 @@ SELECT character_set_client;
SET character_set_client=utf8; SET character_set_client=utf8;
SELECT @@session.character_set_client; SELECT @@session.character_set_client;
# assign global variable without @@ # assign global variable without @@
--Error ER_PARSE_ERROR
SET global.character_set_client=utf8;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session character_set_client=utf8; SET session character_set_client=utf8;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -62,8 +62,6 @@ SELECT character_set_connection; ...@@ -62,8 +62,6 @@ SELECT character_set_connection;
SET character_set_connection=utf8; SET character_set_connection=utf8;
SELECT @@session.character_set_connection; SELECT @@session.character_set_connection;
# assign global variable without @@ # assign global variable without @@
--Error ER_PARSE_ERROR
SET global.character_set_connection=utf8;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session character_set_connection=utf8; SET session character_set_connection=utf8;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -62,8 +62,6 @@ SELECT character_set_database; ...@@ -62,8 +62,6 @@ SELECT character_set_database;
SET character_set_database=utf8; SET character_set_database=utf8;
SELECT @@session.character_set_database; SELECT @@session.character_set_database;
# assign global variable without @@ # assign global variable without @@
--Error ER_PARSE_ERROR
SET global.character_set_database=utf8;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session character_set_database=utf8; SET session character_set_database=utf8;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -62,9 +62,6 @@ SELECT character_set_filesystem; ...@@ -62,9 +62,6 @@ SELECT character_set_filesystem;
# assign value without @@ # assign value without @@
SET character_set_filesystem=utf8; SET character_set_filesystem=utf8;
SELECT @@session.character_set_filesystem; SELECT @@session.character_set_filesystem;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.character_set_filesystem=utf8;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session character_set_filesystem=utf8; SET session character_set_filesystem=utf8;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -61,9 +61,6 @@ SELECT character_set_results; ...@@ -61,9 +61,6 @@ SELECT character_set_results;
# assign value without @@ # assign value without @@
SET character_set_results=utf8; SET character_set_results=utf8;
SELECT @@session.character_set_results; SELECT @@session.character_set_results;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.character_set_results=utf8;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session character_set_results=utf8; SET session character_set_results=utf8;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -59,9 +59,6 @@ SELECT character_set_server; ...@@ -59,9 +59,6 @@ SELECT character_set_server;
# assign value without @@ # assign value without @@
SET character_set_server=utf8; SET character_set_server=utf8;
SELECT @@session.character_set_server; SELECT @@session.character_set_server;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.character_set_server=utf8;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session character_set_server=utf8; SET session character_set_server=utf8;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -59,9 +59,6 @@ SELECT collation_connection; ...@@ -59,9 +59,6 @@ SELECT collation_connection;
# assign value without @@ # assign value without @@
SET collation_connection=utf8_unicode_ci; SET collation_connection=utf8_unicode_ci;
SELECT @@session.collation_connection; SELECT @@session.collation_connection;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.collation_connection=utf8_unicode_ci;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session collation_connection=utf8_unicode_ci; SET session collation_connection=utf8_unicode_ci;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -59,9 +59,6 @@ SELECT collation_database; ...@@ -59,9 +59,6 @@ SELECT collation_database;
# assign value without @@ # assign value without @@
SET collation_database=utf8_unicode_ci; SET collation_database=utf8_unicode_ci;
SELECT @@session.collation_database; SELECT @@session.collation_database;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.collation_database=utf8_unicode_ci;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session collation_database=utf8_unicode_ci; SET session collation_database=utf8_unicode_ci;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -59,9 +59,6 @@ SELECT collation_server; ...@@ -59,9 +59,6 @@ SELECT collation_server;
# assign value without @@ # assign value without @@
SET collation_server=utf8_unicode_ci; SET collation_server=utf8_unicode_ci;
SELECT @@session.collation_server; SELECT @@session.collation_server;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.collation_server=utf8_unicode_ci;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session collation_server=utf8_unicode_ci; SET session collation_server=utf8_unicode_ci;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -157,12 +157,8 @@ SELECT @@local.completion_type = @@session.completion_type; ...@@ -157,12 +157,8 @@ SELECT @@local.completion_type = @@session.completion_type;
SET completion_type = 1; SET completion_type = 1;
SELECT @@completion_type; SELECT @@completion_type;
--Error ER_PARSE_ERROR
SET local.completion_type = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.completion_type; SELECT local.completion_type;
--Error ER_PARSE_ERROR
SET session.completion_type = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.completion_type; SELECT session.completion_type;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -164,8 +164,6 @@ SELECT @@concurrent_insert = @@global.concurrent_insert; ...@@ -164,8 +164,6 @@ SELECT @@concurrent_insert = @@global.concurrent_insert;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET concurrent_insert = 1; SET concurrent_insert = 1;
SELECT @@concurrent_insert; SELECT @@concurrent_insert;
--Error ER_PARSE_ERROR
SET global.concurrent_insert = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.concurrent_insert; SELECT global.concurrent_insert;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -131,8 +131,6 @@ SELECT @@connect_timeout = @@global.connect_timeout; ...@@ -131,8 +131,6 @@ SELECT @@connect_timeout = @@global.connect_timeout;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET connect_timeout = 1; SET connect_timeout = 1;
--Error ER_PARSE_ERROR
SET global.connect_timeout = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.connect_timeout; SELECT global.connect_timeout;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -102,12 +102,8 @@ SELECT @@local.default_master_connection = @@session.default_master_connection; ...@@ -102,12 +102,8 @@ SELECT @@local.default_master_connection = @@session.default_master_connection;
SET default_master_connection = 'foo'; SET default_master_connection = 'foo';
SELECT @@default_master_connection; SELECT @@default_master_connection;
--Error ER_PARSE_ERROR
SET local.default_master_connection = 'foo';
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.default_master_connection; SELECT local.default_master_connection;
--Error ER_PARSE_ERROR
SET session.default_master_connection = 'foo';
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.default_master_connection; SELECT session.default_master_connection;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -170,12 +170,8 @@ SELECT @@local.default_week_format = @@session.default_week_format; ...@@ -170,12 +170,8 @@ SELECT @@local.default_week_format = @@session.default_week_format;
SET default_week_format = 1; SET default_week_format = 1;
SELECT @@default_week_format; SELECT @@default_week_format;
--Error ER_PARSE_ERROR
SET local.default_week_format = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.default_week_format; SELECT local.default_week_format;
--Error ER_PARSE_ERROR
SET session.default_week_format = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.default_week_format; SELECT session.default_week_format;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -141,12 +141,8 @@ SELECT @@delayed_insert_limit = @@global.delayed_insert_limit; ...@@ -141,12 +141,8 @@ SELECT @@delayed_insert_limit = @@global.delayed_insert_limit;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET delayed_insert_limit = 1; SET delayed_insert_limit = 1;
SELECT @@delayed_insert_limit; SELECT @@delayed_insert_limit;
--Error ER_PARSE_ERROR
SET local.delayed_insert_limit = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.delayed_insert_limit; SELECT local.delayed_insert_limit;
--Error ER_PARSE_ERROR
SET global.delayed_insert_limit = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.delayed_insert_limit; SELECT global.delayed_insert_limit;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -140,12 +140,8 @@ SELECT @@delayed_insert_timeout = @@global.delayed_insert_timeout; ...@@ -140,12 +140,8 @@ SELECT @@delayed_insert_timeout = @@global.delayed_insert_timeout;
--Error 1229 --Error 1229
SET delayed_insert_timeout = 1; SET delayed_insert_timeout = 1;
SELECT @@delayed_insert_timeout; SELECT @@delayed_insert_timeout;
--Error 1064
SET local.delayed_insert_timeout = 1;
--Error 1109 --Error 1109
SELECT local.delayed_insert_timeout; SELECT local.delayed_insert_timeout;
--Error 1064
SET global.delayed_insert_timeout = 1;
--Error 1109 --Error 1109
SELECT global.delayed_insert_timeout; SELECT global.delayed_insert_timeout;
--Error 1054 --Error 1054
......
...@@ -136,12 +136,8 @@ SELECT @@delayed_queue_size = @@global.delayed_queue_size; ...@@ -136,12 +136,8 @@ SELECT @@delayed_queue_size = @@global.delayed_queue_size;
--Error 1229 --Error 1229
SET delayed_queue_size = 1; SET delayed_queue_size = 1;
SELECT @@delayed_queue_size; SELECT @@delayed_queue_size;
--Error ER_PARSE_ERROR
SET local.delayed_queue_size = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.delayed_queue_size; SELECT local.delayed_queue_size;
--Error ER_PARSE_ERROR
SET global.delayed_queue_size = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.delayed_queue_size; SELECT global.delayed_queue_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -179,12 +179,8 @@ SELECT @@local.div_precision_increment = @@session.div_precision_increment; ...@@ -179,12 +179,8 @@ SELECT @@local.div_precision_increment = @@session.div_precision_increment;
SET div_precision_increment = 1; SET div_precision_increment = 1;
SELECT @@div_precision_increment; SELECT @@div_precision_increment;
--Error ER_PARSE_ERROR
SET local.div_precision_increment = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.div_precision_increment; SELECT local.div_precision_increment;
--Error ER_PARSE_ERROR
SET session.div_precision_increment = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.div_precision_increment; SELECT session.div_precision_increment;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -147,12 +147,8 @@ SELECT @@event_scheduler = @@global.event_scheduler; ...@@ -147,12 +147,8 @@ SELECT @@event_scheduler = @@global.event_scheduler;
####################################################################### #######################################################################
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET event_scheduler = ON; SET event_scheduler = ON;
--Error ER_PARSE_ERROR
SET local.event_scheduler = OFF;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.event_scheduler; SELECT local.event_scheduler;
--Error ER_PARSE_ERROR
SET global.event_scheduler = ON;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.event_scheduler; SELECT global.event_scheduler;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -153,12 +153,8 @@ SELECT @@expire_logs_days = @@global.expire_logs_days; ...@@ -153,12 +153,8 @@ SELECT @@expire_logs_days = @@global.expire_logs_days;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET expire_logs_days = 1; SET expire_logs_days = 1;
SELECT @@expire_logs_days; SELECT @@expire_logs_days;
--Error ER_PARSE_ERROR
SET local.expire_logs_days = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.expire_logs_days; SELECT local.expire_logs_days;
--Error ER_PARSE_ERROR
SET global.expire_logs_days = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.expire_logs_days; SELECT global.expire_logs_days;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -149,8 +149,6 @@ SELECT @@flush = @@global.flush; ...@@ -149,8 +149,6 @@ SELECT @@flush = @@global.flush;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET flush = 1; SET flush = 1;
--Error ER_PARSE_ERROR
SET global.flush = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.flush; SELECT global.flush;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -143,12 +143,8 @@ SELECT @@general_log = @@global.general_log; ...@@ -143,12 +143,8 @@ SELECT @@general_log = @@global.general_log;
####################################################################### #######################################################################
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET general_log = ON; SET general_log = ON;
--Error ER_PARSE_ERROR
SET local.general_log = OFF;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.general_log; SELECT local.general_log;
--Error ER_PARSE_ERROR
SET global.general_log = ON;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.general_log; SELECT global.general_log;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -163,12 +163,8 @@ SELECT @@session.identity = @@local.identity; ...@@ -163,12 +163,8 @@ SELECT @@session.identity = @@local.identity;
SET identity = 1; SET identity = 1;
SELECT @@identity; SELECT @@identity;
--Error ER_PARSE_ERROR
SET local.identity = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.identity; SELECT local.identity;
--Error ER_PARSE_ERROR
SET session.identity = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.identity; SELECT session.identity;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -164,12 +164,8 @@ SELECT @@session.insert_id = @@local.insert_id; ...@@ -164,12 +164,8 @@ SELECT @@session.insert_id = @@local.insert_id;
SET insert_id = 1; SET insert_id = 1;
SELECT @@insert_id; SELECT @@insert_id;
--Error ER_PARSE_ERROR
SET local.insert_id = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.insert_id; SELECT local.insert_id;
--Error ER_PARSE_ERROR
SET session.insert_id = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT session.insert_id; SELECT session.insert_id;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -128,12 +128,8 @@ SELECT @@key_buffer_size = @@global.key_buffer_size; ...@@ -128,12 +128,8 @@ SELECT @@key_buffer_size = @@global.key_buffer_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET key_buffer_size = 8 ; SET key_buffer_size = 8 ;
--Error ER_PARSE_ERROR
SET local.key_buffer_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.key_buffer_size; SELECT local.key_buffer_size;
--Error ER_PARSE_ERROR
SET global.key_buffer_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.key_buffer_size; SELECT global.key_buffer_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -148,12 +148,8 @@ SELECT @@key_cache_age_threshold = @@global.key_cache_age_threshold; ...@@ -148,12 +148,8 @@ SELECT @@key_cache_age_threshold = @@global.key_cache_age_threshold;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET key_cache_age_threshold = 8000; SET key_cache_age_threshold = 8000;
SELECT @@key_cache_age_threshold; SELECT @@key_cache_age_threshold;
--Error ER_PARSE_ERROR
SET local.key_cache_age_threshold = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.key_cache_age_threshold; SELECT local.key_cache_age_threshold;
--Error ER_PARSE_ERROR
SET global.key_cache_age_threshold = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.key_cache_age_threshold; SELECT global.key_cache_age_threshold;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -152,12 +152,8 @@ SELECT @@key_cache_block_size = @@global.key_cache_block_size; ...@@ -152,12 +152,8 @@ SELECT @@key_cache_block_size = @@global.key_cache_block_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET key_cache_block_size = 8000; SET key_cache_block_size = 8000;
SELECT @@key_cache_block_size; SELECT @@key_cache_block_size;
--Error ER_PARSE_ERROR
SET local.key_cache_block_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.key_cache_block_size; SELECT local.key_cache_block_size;
--Error ER_PARSE_ERROR
SET global.key_cache_block_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.key_cache_block_size; SELECT global.key_cache_block_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -153,12 +153,8 @@ SELECT @@key_cache_division_limit = @@global.key_cache_division_limit; ...@@ -153,12 +153,8 @@ SELECT @@key_cache_division_limit = @@global.key_cache_division_limit;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET key_cache_division_limit = 80; SET key_cache_division_limit = 80;
SELECT @@key_cache_division_limit; SELECT @@key_cache_division_limit;
--Error ER_PARSE_ERROR
SET local.key_cache_division_limit = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.key_cache_division_limit; SELECT local.key_cache_division_limit;
--Error ER_PARSE_ERROR
SET global.key_cache_division_limit = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.key_cache_division_limit; SELECT global.key_cache_division_limit;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -143,12 +143,8 @@ SELECT @@key_cache_file_hash_size = @@global.key_cache_file_hash_size; ...@@ -143,12 +143,8 @@ SELECT @@key_cache_file_hash_size = @@global.key_cache_file_hash_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET key_cache_file_hash_size = 8000; SET key_cache_file_hash_size = 8000;
SELECT @@key_cache_file_hash_size; SELECT @@key_cache_file_hash_size;
--Error ER_PARSE_ERROR
SET local.key_cache_file_hash_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.key_cache_file_hash_size; SELECT local.key_cache_file_hash_size;
--Error ER_PARSE_ERROR
SET global.key_cache_file_hash_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.key_cache_file_hash_size; SELECT global.key_cache_file_hash_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -56,9 +56,6 @@ SELECT lc_time_names; ...@@ -56,9 +56,6 @@ SELECT lc_time_names;
# assign value without @@ # assign value without @@
SET lc_time_names=ar_AE; SET lc_time_names=ar_AE;
SELECT @@session.lc_time_names; SELECT @@session.lc_time_names;
# assign global variable without @@
--Error ER_PARSE_ERROR
SET global.lc_time_names=ar_AE;
# using another syntax for accessing session variable # using another syntax for accessing session variable
SET session lc_time_names=ar_AE; SET session lc_time_names=ar_AE;
# accessing variable with scope the wrong way # accessing variable with scope the wrong way
......
...@@ -154,8 +154,6 @@ SELECT @@local_infile = @@global.local_infile; ...@@ -154,8 +154,6 @@ SELECT @@local_infile = @@global.local_infile;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET local_infile = 1; SET local_infile = 1;
SELECT @@local_infile; SELECT @@local_infile;
--Error ER_PARSE_ERROR
SET global.local_infile = 1;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.local_infile; SELECT global.local_infile;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -165,12 +165,8 @@ SELECT @@max_binlog_cache_size = @@global.max_binlog_cache_size; ...@@ -165,12 +165,8 @@ SELECT @@max_binlog_cache_size = @@global.max_binlog_cache_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET max_binlog_cache_size = 6000; SET max_binlog_cache_size = 6000;
SELECT @@max_binlog_cache_size; SELECT @@max_binlog_cache_size;
--Error ER_PARSE_ERROR
SET local.max_binlog_cache_size = 7000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.max_binlog_cache_size; SELECT local.max_binlog_cache_size;
--Error ER_PARSE_ERROR
SET global.max_binlog_cache_size = 8000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.max_binlog_cache_size; SELECT global.max_binlog_cache_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -153,12 +153,8 @@ SELECT @@max_binlog_size = @@global.max_binlog_size; ...@@ -153,12 +153,8 @@ SELECT @@max_binlog_size = @@global.max_binlog_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET max_binlog_size = 6000; SET max_binlog_size = 6000;
SELECT @@max_binlog_size; SELECT @@max_binlog_size;
--Error ER_PARSE_ERROR
SET local.max_binlog_size = 7000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.max_binlog_size; SELECT local.max_binlog_size;
--Error ER_PARSE_ERROR
SET global.max_binlog_size = 8000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.max_binlog_size; SELECT global.max_binlog_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -166,12 +166,8 @@ SELECT @@max_binlog_stmt_cache_size = @@global.max_binlog_stmt_cache_size; ...@@ -166,12 +166,8 @@ SELECT @@max_binlog_stmt_cache_size = @@global.max_binlog_stmt_cache_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET max_binlog_stmt_cache_size = 6000; SET max_binlog_stmt_cache_size = 6000;
SELECT @@max_binlog_stmt_cache_size; SELECT @@max_binlog_stmt_cache_size;
--Error ER_PARSE_ERROR
SET local.max_binlog_stmt_cache_size = 7000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.max_binlog_stmt_cache_size; SELECT local.max_binlog_stmt_cache_size;
--Error ER_PARSE_ERROR
SET global.max_binlog_stmt_cache_size = 8000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.max_binlog_stmt_cache_size; SELECT global.max_binlog_stmt_cache_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
...@@ -152,12 +152,8 @@ SELECT @@max_connect_errors = @@global.max_connect_errors; ...@@ -152,12 +152,8 @@ SELECT @@max_connect_errors = @@global.max_connect_errors;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET max_connect_errors = 6000; SET max_connect_errors = 6000;
SELECT @@max_connect_errors; SELECT @@max_connect_errors;
--Error ER_PARSE_ERROR
SET local.max_connect_errors = 7000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.max_connect_errors; SELECT local.max_connect_errors;
--Error ER_PARSE_ERROR
SET global.max_connect_errors = 8000;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT global.max_connect_errors; SELECT global.max_connect_errors;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment