mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
merge with 5.5
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
set session debug="L";
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@debug' is deprecated and will be removed in MariaDB 10.1. Please use '@@debug_dbug' instead
|
||||
Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead
|
||||
select @@global.debug="1";
|
||||
@@global.debug="1"
|
||||
0
|
||||
|
||||
@@ -13,26 +13,26 @@ index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_inters
|
||||
'#--------------------FN_DYNVARS_028_01------------------------#'
|
||||
SET @@session.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SET @@session.engine_condition_pushdown = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SET @@global.engine_condition_pushdown = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
'#---------------------FN_DYNVARS_028_02-------------------------#'
|
||||
SET engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@engine_condition_pushdown;
|
||||
@@engine_condition_pushdown
|
||||
1
|
||||
@@ -44,38 +44,38 @@ SELECT global.engine_condition_pushdown;
|
||||
ERROR 42S02: Unknown table 'global' in field list
|
||||
SET session engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET global engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
'#--------------------FN_DYNVARS_028_03------------------------#'
|
||||
SET @@session.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@session.engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
@@ -115,16 +115,16 @@ ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '
|
||||
'#-------------------FN_DYNVARS_028_05----------------------------#'
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SET @@session.engine_condition_pushdown = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown AS res_is_0;
|
||||
res_is_0
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown AS res_is_1;
|
||||
res_is_1
|
||||
1
|
||||
@@ -159,50 +159,50 @@ ON
|
||||
'#---------------------FN_DYNVARS_028_08-------------------------#'
|
||||
SET @@session.engine_condition_pushdown = OFF;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@session.engine_condition_pushdown = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = OFF;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
'#---------------------FN_DYNVARS_028_09----------------------#'
|
||||
SET @@session.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
1
|
||||
SET @@session.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
1
|
||||
SET @@global.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
@@ -215,7 +215,7 @@ select @@session.engine_condition_pushdown,
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off
|
||||
set @@session.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@ -223,7 +223,7 @@ select @@session.engine_condition_pushdown,
|
||||
1 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=on,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off
|
||||
set @@session.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@ -231,7 +231,7 @@ select @@session.engine_condition_pushdown,
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off
|
||||
set @@global.engine_condition_pushdown = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@ -239,7 +239,7 @@ select @@session.engine_condition_pushdown,
|
||||
0 1 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=on,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off
|
||||
set @@global.engine_condition_pushdown = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
select @@session.engine_condition_pushdown,
|
||||
@@global.engine_condition_pushdown,
|
||||
@@session.optimizer_switch, @@global.optimizer_switch;
|
||||
@@ -271,13 +271,13 @@ select @@session.engine_condition_pushdown,
|
||||
0 0 index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off
|
||||
SET @@session.engine_condition_pushdown = @session_start_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@session.engine_condition_pushdown;
|
||||
@@session.engine_condition_pushdown
|
||||
0
|
||||
SET @@global.engine_condition_pushdown = @global_start_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@engine_condition_pushdown' is deprecated and will be removed in MariaDB 10.1. Please use '@@optimizer_switch' instead
|
||||
Warning 1287 '@@engine_condition_pushdown' is deprecated and will be removed in a future release. Please use '@@optimizer_switch' instead
|
||||
SELECT @@global.engine_condition_pushdown;
|
||||
@@global.engine_condition_pushdown
|
||||
0
|
||||
|
||||
49
mysql-test/suite/sys_vars/r/ignore_db_dirs_basic.result
Normal file
49
mysql-test/suite/sys_vars/r/ignore_db_dirs_basic.result
Normal file
@@ -0,0 +1,49 @@
|
||||
select @@ignore_db_dirs;
|
||||
@@ignore_db_dirs
|
||||
e,lost+found,.mysqlgui,ignored_db
|
||||
# Check that SHOW DATABASES ignores all directories from
|
||||
# @@ignore_db_dirs and all directories with names starting
|
||||
# with '.'
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
information_schema
|
||||
#mysql50#.otherdir
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
USE ignored_db;
|
||||
ERROR 42000: Incorrect database name 'ignored_db'
|
||||
SELECT * FROM ignored_db.t1;
|
||||
ERROR 42000: Incorrect database name 'ignored_db'
|
||||
CALL ignored_db.p1();
|
||||
ERROR 42000: Incorrect database name 'ignored_db'
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME='ignored_db';
|
||||
COUNT(*)
|
||||
1
|
||||
CREATE DATABASE ignored_db;
|
||||
ERROR 42000: Incorrect database name 'ignored_db'
|
||||
CREATE DATABASE `lost+found`;
|
||||
USE `lost+found`;
|
||||
CREATE TABLE t1(id INT);
|
||||
INSERT INTO t1 VALUES (1), (2);
|
||||
SELECT * FROM `lost+found`.t1;
|
||||
id
|
||||
1
|
||||
2
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
information_schema
|
||||
#mysql50#.otherdir
|
||||
lost+found
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
DROP DATABASE `lost+found`;
|
||||
SET @@global.ignore_db_dirs = 'aha';
|
||||
ERROR HY000: Variable 'ignore_db_dirs' is a read only variable
|
||||
SET @@local.ignore_db_dirs = 'aha';
|
||||
ERROR HY000: Variable 'ignore_db_dirs' is a read only variable
|
||||
SET @@ignore_db_dirs = 'aha';
|
||||
ERROR HY000: Variable 'ignore_db_dirs' is a read only variable
|
||||
@@ -0,0 +1,24 @@
|
||||
SELECT @@global.innodb_persistent_stats_root_page;
|
||||
@@global.innodb_persistent_stats_root_page
|
||||
0
|
||||
SELECT COUNT(@@global.innodb_persistent_stats_root_page);
|
||||
COUNT(@@global.innodb_persistent_stats_root_page)
|
||||
1
|
||||
SET @@global.innodb_persistent_stats_root_page=100;
|
||||
ERROR HY000: Variable 'innodb_persistent_stats_root_page' is a read only variable
|
||||
SELECT @@global.innodb_persistent_stats_root_page = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_persistent_stats_root_page';
|
||||
@@global.innodb_persistent_stats_root_page = VARIABLE_VALUE
|
||||
1
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_persistent_stats_root_page';
|
||||
COUNT(*)
|
||||
1
|
||||
SELECT @@innodb_persistent_stats_root_page = @@global.innodb_persistent_stats_root_page;
|
||||
@@innodb_persistent_stats_root_page = @@global.innodb_persistent_stats_root_page
|
||||
1
|
||||
SELECT COUNT(@@local.innodb_persistent_stats_root_page);
|
||||
ERROR HY000: Variable 'innodb_persistent_stats_root_page' is a GLOBAL variable
|
||||
SELECT COUNT(@@session.innodb_persistent_stats_root_page);
|
||||
ERROR HY000: Variable 'innodb_persistent_stats_root_page' is a GLOBAL variable
|
||||
@@ -0,0 +1,21 @@
|
||||
SELECT COUNT(@@GLOBAL.innodb_track_changed_pages);
|
||||
COUNT(@@GLOBAL.innodb_track_changed_pages)
|
||||
1
|
||||
SET @@GLOBAL.innodb_track_changed_pages=1;
|
||||
ERROR HY000: Variable 'innodb_track_changed_pages' is a read only variable
|
||||
SELECT @@GLOBAL.innodb_track_changed_pages = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_track_changed_pages';
|
||||
@@GLOBAL.innodb_track_changed_pages = VARIABLE_VALUE
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DOUBLE value: 'OFF'
|
||||
SELECT @@innodb_track_changed_pages = @@GLOBAL.innodb_track_changed_pages;
|
||||
@@innodb_track_changed_pages = @@GLOBAL.innodb_track_changed_pages
|
||||
1
|
||||
SELECT COUNT(@@SESSION.innodb_track_changed_pages);
|
||||
ERROR HY000: Variable 'innodb_track_changed_pages' is a GLOBAL variable
|
||||
SELECT COUNT(@@LOCAL.innodb_track_changed_pages);
|
||||
ERROR HY000: Variable 'innodb_track_changed_pages' is a GLOBAL variable
|
||||
SELECT innodb_track_changed_pages = @@SESSION.innodb_track_changed_pages;
|
||||
ERROR 42S22: Unknown column 'innodb_track_changed_pages' in 'field list'
|
||||
@@ -8,10 +8,10 @@ INIT_VALUE
|
||||
1
|
||||
SET @@global.log = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log' is deprecated and will be removed in MariaDB 10.1. Please use '@@general_log' instead
|
||||
Warning 1287 '@@log' is deprecated and will be removed in a future release. Please use '@@general_log' instead
|
||||
SET global log = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log' is deprecated and will be removed in MariaDB 10.1. Please use '@@general_log' instead
|
||||
Warning 1287 '@@log' is deprecated and will be removed in a future release. Please use '@@general_log' instead
|
||||
'#--------------------FN_DYNVARS_062_02-------------------------#'
|
||||
SELECT VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
@@ -20,4 +20,4 @@ VARIABLE_VALUE
|
||||
OFF
|
||||
SET @@global.log= @start_log;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log' is deprecated and will be removed in MariaDB 10.1. Please use '@@general_log' instead
|
||||
Warning 1287 '@@log' is deprecated and will be removed in a future release. Please use '@@general_log' instead
|
||||
|
||||
@@ -5,20 +5,20 @@ SELECT @start_value;
|
||||
'#---------------------FN_DYNVARS_004_01-------------------------#'
|
||||
SET @@global.log_slow_queries = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries = 0;
|
||||
@@global.log_slow_queries = 0
|
||||
1
|
||||
'#--------------------FN_DYNVARS_004_02------------------------#'
|
||||
SET @@global.log_slow_queries = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
1
|
||||
SET @@global.log_slow_queries = OFF;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
0
|
||||
@@ -61,7 +61,7 @@ IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
'#---------------------FN_DYNVARS_004_06----------------------#'
|
||||
SET @@global.log_slow_queries = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
0
|
||||
@@ -72,7 +72,7 @@ IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
1
|
||||
SET @@global.log_slow_queries = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
1
|
||||
@@ -84,7 +84,7 @@ IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
'#---------------------FN_DYNVARS_004_07----------------------#'
|
||||
SET @@global.log_slow_queries = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
1
|
||||
@@ -95,7 +95,7 @@ IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
1
|
||||
SET @@global.log_slow_queries = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
0
|
||||
@@ -107,7 +107,7 @@ IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
'#---------------------FN_DYNVARS_004_08----------------------#'
|
||||
SET @@global.log_slow_queries = ON;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@log_slow_queries = @@global.log_slow_queries;
|
||||
@@log_slow_queries = @@global.log_slow_queries
|
||||
1
|
||||
@@ -126,7 +126,7 @@ SELECT log_slow_queries = @@session.log_slow_queries;
|
||||
ERROR 42S22: Unknown column 'log_slow_queries' in 'field list'
|
||||
SET @@global.log_slow_queries = @start_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_slow_queries' is deprecated and will be removed in MariaDB 10.1. Please use '@@slow_query_log' instead
|
||||
Warning 1287 '@@log_slow_queries' is deprecated and will be removed in a future release. Please use '@@slow_query_log' instead
|
||||
SELECT @@global.log_slow_queries;
|
||||
@@global.log_slow_queries
|
||||
1
|
||||
|
||||
@@ -9,101 +9,101 @@ SELECT @start_session_value;
|
||||
'#--------------------FN_DYNVARS_090_01-------------------------#'
|
||||
SET @@global.multi_range_count = 100;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SET @@global.multi_range_count = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
256
|
||||
SET @@session.multi_range_count = 200;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SET @@session.multi_range_count = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
256
|
||||
'#--------------------FN_DYNVARS_090_02-------------------------#'
|
||||
SET @@global.multi_range_count = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count = 256;
|
||||
@@global.multi_range_count = 256
|
||||
1
|
||||
SET @@session.multi_range_count = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count = 256;
|
||||
@@session.multi_range_count = 256
|
||||
1
|
||||
'#--------------------FN_DYNVARS_090_03-------------------------#'
|
||||
SET @@global.multi_range_count = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
1
|
||||
SET @@global.multi_range_count = 60020;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
60020
|
||||
SET @@global.multi_range_count = 65535;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
65535
|
||||
SET @@global.multi_range_count = 4294967295;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
4294967295
|
||||
SET @@global.multi_range_count = 4294967294;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
4294967294
|
||||
'#--------------------FN_DYNVARS_090_04-------------------------#'
|
||||
SET @@session.multi_range_count = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
1
|
||||
SET @@session.multi_range_count = 50050;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
50050
|
||||
SET @@session.multi_range_count = 65535;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
65535
|
||||
SET @@session.multi_range_count = 4294967295;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
4294967295
|
||||
SET @@session.multi_range_count = 4294967294;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
4294967294
|
||||
'#------------------FN_DYNVARS_090_05-----------------------#'
|
||||
SET @@global.multi_range_count = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1292 Truncated incorrect multi_range_count value: '0'
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
@@ -114,7 +114,7 @@ SELECT @@global.multi_range_count;
|
||||
4294967295
|
||||
SET @@global.multi_range_count = -1024;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1292 Truncated incorrect multi_range_count value: '-1024'
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
@@ -135,7 +135,7 @@ SELECT @@global.multi_range_count;
|
||||
4294967295
|
||||
SET @@session.multi_range_count = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1292 Truncated incorrect multi_range_count value: '0'
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
@@ -146,7 +146,7 @@ SELECT @@session.multi_range_count;
|
||||
4294967295
|
||||
SET @@session.multi_range_count = -1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1292 Truncated incorrect multi_range_count value: '-1'
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
@@ -178,13 +178,13 @@ WHERE VARIABLE_NAME='multi_range_count';
|
||||
'#------------------FN_DYNVARS_090_08-----------------------#'
|
||||
SET @@global.multi_range_count = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
1
|
||||
SET @@global.multi_range_count = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1292 Truncated incorrect multi_range_count value: '0'
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
@@ -192,14 +192,14 @@ SELECT @@global.multi_range_count;
|
||||
'#---------------------FN_DYNVARS_090_09----------------------#'
|
||||
SET @@global.multi_range_count = 10;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@multi_range_count = @@global.multi_range_count;
|
||||
@@multi_range_count = @@global.multi_range_count
|
||||
0
|
||||
'#---------------------FN_DYNVARS_090_10----------------------#'
|
||||
SET @@multi_range_count = 100;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@multi_range_count = @@local.multi_range_count;
|
||||
@@multi_range_count = @@local.multi_range_count
|
||||
1
|
||||
@@ -209,7 +209,7 @@ SELECT @@local.multi_range_count = @@session.multi_range_count;
|
||||
'#---------------------FN_DYNVARS_090_11----------------------#'
|
||||
SET multi_range_count = 1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@multi_range_count;
|
||||
@@multi_range_count
|
||||
1
|
||||
@@ -221,13 +221,13 @@ SELECT multi_range_count = @@session.multi_range_count;
|
||||
ERROR 42S22: Unknown column 'multi_range_count' in 'field list'
|
||||
SET @@global.multi_range_count = @start_global_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@global.multi_range_count;
|
||||
@@global.multi_range_count
|
||||
256
|
||||
SET @@session.multi_range_count = @start_session_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@multi_range_count' is deprecated and will be removed in MariaDB 10.1. Please use '@@mrr_buffer_size' instead
|
||||
Warning 1287 '@@multi_range_count' is deprecated and will be removed in a future release. Please use '@@mrr_buffer_size' instead
|
||||
SELECT @@session.multi_range_count;
|
||||
@@session.multi_range_count
|
||||
256
|
||||
|
||||
@@ -5,29 +5,29 @@ SELECT @start_global_value;
|
||||
'#--------------------FN_DYNVARS_142_01-------------------------#'
|
||||
SET @@global.rpl_recovery_rank = 500000;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SET @@global.rpl_recovery_rank = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
0
|
||||
'#--------------------FN_DYNVARS_142_02-------------------------#'
|
||||
SET @@global.rpl_recovery_rank = 0;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
0
|
||||
SET @@global.rpl_recovery_rank = 1024;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
1024
|
||||
SET @@global.rpl_recovery_rank = 123456789;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
123456789
|
||||
@@ -53,21 +53,21 @@ ERROR HY000: Variable 'rpl_recovery_rank' is a GLOBAL variable and should be set
|
||||
'#------------------FN_DYNVARS_142_04-----------------------#'
|
||||
SET @@global.rpl_recovery_rank = -1;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
Warning 1292 Truncated incorrect rpl_recovery_rank value: '-1'
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
0
|
||||
SET @@global.rpl_recovery_rank = -2147483648;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
Warning 1292 Truncated incorrect rpl_recovery_rank value: '-2147483648'
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
0
|
||||
SET @@global.rpl_recovery_rank = -2147483649;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
Warning 1292 Truncated incorrect rpl_recovery_rank value: '-2147483649'
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
@@ -81,7 +81,7 @@ ERROR 42000: Incorrect argument type to variable 'rpl_recovery_rank'
|
||||
'#------------------FN_DYNVARS_142_05-----------------------#'
|
||||
SET @@global.rpl_recovery_rank = 3000;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='rpl_recovery_rank';
|
||||
@@ -96,20 +96,20 @@ count(VARIABLE_VALUE)
|
||||
'#------------------FN_DYNVARS_142_07-----------------------#'
|
||||
SET @@global.rpl_recovery_rank = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
1
|
||||
SET @@global.rpl_recovery_rank = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
0
|
||||
'#---------------------FN_DYNVARS_001_08----------------------#'
|
||||
SET @@global.rpl_recovery_rank = 512;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@rpl_recovery_rank = @@global.rpl_recovery_rank;
|
||||
@@rpl_recovery_rank = @@global.rpl_recovery_rank
|
||||
1
|
||||
@@ -123,10 +123,10 @@ SELECT @@rpl_recovery_rank;
|
||||
512
|
||||
SET global rpl_recovery_rank = 64;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SET @@global.rpl_recovery_rank = @start_global_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@rpl_recovery_rank' is deprecated and will be removed in MariaDB 10.1.
|
||||
Warning 1287 '@@rpl_recovery_rank' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
@@global.rpl_recovery_rank
|
||||
0
|
||||
|
||||
@@ -5,7 +5,7 @@ SET @session_max_join_size = @@SESSION.max_join_size;
|
||||
SET @global_max_join_size = @@GLOBAL.max_join_size;
|
||||
SET SQL_MAX_JOIN_SIZE=9;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
CREATE TEMPORARY TABLE t1(a varchar(20) not null, b varchar(20));
|
||||
CREATE TEMPORARY TABLE t2(a varchar(20) null, b varchar(20));
|
||||
INSERT INTO t1 VALUES('aa','bb');
|
||||
|
||||
@@ -22,10 +22,10 @@ VARIABLE_NAME VARIABLE_VALUE
|
||||
SQL_MAX_JOIN_SIZE 18446744073709551615
|
||||
set global sql_max_join_size=10;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
set session sql_max_join_size=20;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
select @@global.sql_max_join_size;
|
||||
@@global.sql_max_join_size
|
||||
10
|
||||
@@ -55,20 +55,20 @@ select @@sql_big_selects;
|
||||
0
|
||||
set sql_max_join_size=cast(-1 as unsigned int);
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
Note 1105 Cast to unsigned converted negative integer to it's positive complement
|
||||
select @@sql_big_selects;
|
||||
@@sql_big_selects
|
||||
1
|
||||
set sql_max_join_size=100;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
select @@sql_big_selects;
|
||||
@@sql_big_selects
|
||||
0
|
||||
SET @@global.sql_max_join_size = @start_global_value;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
SELECT @@global.sql_max_join_size;
|
||||
@@global.sql_max_join_size
|
||||
18446744073709551615
|
||||
|
||||
@@ -17,7 +17,7 @@ INSERT INTO t2 VALUES('aa4','bb');
|
||||
'#--------------------FN_DYNVARS_161_01-------------------------#'
|
||||
SET SESSION sql_max_join_size=9;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.a;
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
Expected error The SELECT would examine more than MAX_JOIN_SIZE rows.
|
||||
@@ -33,7 +33,7 @@ aa4 bb aa4 bb
|
||||
This should work
|
||||
SET SESSION sql_max_join_size=DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
DELETE FROM t2 WHERE a = 'aa4';
|
||||
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.a;
|
||||
a b a b
|
||||
@@ -45,7 +45,7 @@ This should work
|
||||
'#----------------------------FN_DYNVARS_136_05-------------------------#'
|
||||
SET GLOBAL sql_max_join_size = 4;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
** Connecting con_int1 using root **
|
||||
** Connection con_int1 **
|
||||
SELECT @@SESSION.sql_max_join_size;
|
||||
@@ -54,7 +54,7 @@ SELECT @@SESSION.sql_max_join_size;
|
||||
4 Expected
|
||||
SET SESSION sql_max_join_size = 2;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
** Connecting con_int2 using root **
|
||||
** Connection con_int2 **
|
||||
SELECT @@SESSION.sql_max_join_size;
|
||||
@@ -63,7 +63,7 @@ SELECT @@SESSION.sql_max_join_size;
|
||||
4 Expected
|
||||
SET SESSION sql_max_join_size = 10;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
** Connection con_int2 **
|
||||
SELECT @@SESSION.sql_max_join_size;
|
||||
@@SESSION.sql_max_join_size
|
||||
@@ -82,10 +82,10 @@ SELECT @@GLOBAL.sql_max_join_size;
|
||||
Disconnecting Connections con_int1, con_int2
|
||||
SET @@SESSION.sql_max_join_size = @session_max_join_size;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
SET @@GLOBAL.sql_max_join_size = @global_max_join_size ;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MariaDB 10.1. Please use '@@max_join_size' instead
|
||||
Warning 1287 '@@sql_max_join_size' is deprecated and will be removed in a future release. Please use '@@max_join_size' instead
|
||||
SET @@SESSION.sql_big_selects = @session_sql_big_selects;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
|
||||
11
mysql-test/suite/sys_vars/t/ignore_db_dirs_basic-master.opt
Normal file
11
mysql-test/suite/sys_vars/t/ignore_db_dirs_basic-master.opt
Normal file
@@ -0,0 +1,11 @@
|
||||
--ignore-db-dir=a
|
||||
--ignore-db-dir=b
|
||||
--ignore-db-dir=c
|
||||
--ignore-db-dir=
|
||||
--ignore-db-dir=d
|
||||
--ignore-db-dir x
|
||||
--ignore-db-dir=
|
||||
--ignore-db-dir=e
|
||||
--ignore-db-dir=lost+found
|
||||
--ignore-db-dir=.mysqlgui
|
||||
--ignore-db-dir=ignored_db
|
||||
38
mysql-test/suite/sys_vars/t/ignore_db_dirs_basic.test
Normal file
38
mysql-test/suite/sys_vars/t/ignore_db_dirs_basic.test
Normal file
@@ -0,0 +1,38 @@
|
||||
select @@ignore_db_dirs;
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
mkdir $MYSQLD_DATADIR/.mysqlgui;
|
||||
mkdir $MYSQLD_DATADIR/.otherdir;
|
||||
mkdir $MYSQLD_DATADIR/lost+found;
|
||||
mkdir $MYSQLD_DATADIR/ignored_db;
|
||||
--echo # Check that SHOW DATABASES ignores all directories from
|
||||
--echo # @@ignore_db_dirs and all directories with names starting
|
||||
--echo # with '.'
|
||||
SHOW DATABASES;
|
||||
--error ER_WRONG_DB_NAME
|
||||
USE ignored_db;
|
||||
--error ER_WRONG_DB_NAME
|
||||
SELECT * FROM ignored_db.t1;
|
||||
--error ER_WRONG_DB_NAME
|
||||
CALL ignored_db.p1();
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME='ignored_db';
|
||||
--error ER_WRONG_DB_NAME
|
||||
CREATE DATABASE ignored_db;
|
||||
CREATE DATABASE `lost+found`;
|
||||
USE `lost+found`;
|
||||
CREATE TABLE t1(id INT);
|
||||
INSERT INTO t1 VALUES (1), (2);
|
||||
SELECT * FROM `lost+found`.t1;
|
||||
SHOW DATABASES;
|
||||
DROP DATABASE `lost+found`;
|
||||
rmdir $MYSQLD_DATADIR/.mysqlgui;
|
||||
rmdir $MYSQLD_DATADIR/.otherdir;
|
||||
rmdir $MYSQLD_DATADIR/lost+found;
|
||||
rmdir $MYSQLD_DATADIR/ignored_db;
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@global.ignore_db_dirs = 'aha';
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@local.ignore_db_dirs = 'aha';
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@ignore_db_dirs = 'aha';
|
||||
@@ -0,0 +1,26 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/have_xtradb.inc
|
||||
|
||||
SELECT @@global.innodb_persistent_stats_root_page;
|
||||
SELECT COUNT(@@global.innodb_persistent_stats_root_page);
|
||||
|
||||
# Read-only variable
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@global.innodb_persistent_stats_root_page=100;
|
||||
|
||||
# Check if INFORMATION_SCHEMA agrees with the var
|
||||
SELECT @@global.innodb_persistent_stats_root_page = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_persistent_stats_root_page';
|
||||
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_persistent_stats_root_page';
|
||||
|
||||
# Check if accessing the var without GLOBAL points to the same
|
||||
SELECT @@innodb_persistent_stats_root_page = @@global.innodb_persistent_stats_root_page;
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT COUNT(@@local.innodb_persistent_stats_root_page);
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT COUNT(@@session.innodb_persistent_stats_root_page);
|
||||
@@ -0,0 +1,21 @@
|
||||
# Tests for innodb_track_changed_pages variable
|
||||
|
||||
--source include/have_xtradb.inc
|
||||
|
||||
SELECT COUNT(@@GLOBAL.innodb_track_changed_pages);
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SET @@GLOBAL.innodb_track_changed_pages=1;
|
||||
|
||||
SELECT @@GLOBAL.innodb_track_changed_pages = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_track_changed_pages';
|
||||
|
||||
SELECT @@innodb_track_changed_pages = @@GLOBAL.innodb_track_changed_pages;
|
||||
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT COUNT(@@SESSION.innodb_track_changed_pages);
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT COUNT(@@LOCAL.innodb_track_changed_pages);
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
SELECT innodb_track_changed_pages = @@SESSION.innodb_track_changed_pages;
|
||||
Reference in New Issue
Block a user