mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge with 5.2
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
SET @start_value = @@global.general_log_file;
|
||||
SELECT @start_value;
|
||||
@start_value
|
||||
test.log
|
||||
NULL
|
||||
'#---------------------FN_DYNVARS_004_01-------------------------#'
|
||||
SET @@global.general_log_file = DEFAULT;
|
||||
SELECT RIGHT(@@global.general_log_file,10) AS log_file;
|
||||
@@ -17,4 +16,4 @@ FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='general_log_file';
|
||||
@@global.general_log_file = VARIABLE_VALUE
|
||||
1
|
||||
SET @@global.general_log_file= @start_value;
|
||||
SET @@global.general_log_file= 'test.log';
|
||||
|
@@ -26,6 +26,7 @@ SELECT @@general_log;
|
||||
INSERT into t1(name) values('Record_3');
|
||||
INSERT into t1(name) values('Record_4');
|
||||
## There should be a difference ##
|
||||
SET @start_value= @@global.max_allowed_packet;
|
||||
SET @@global.max_allowed_packet= 1024*1024*1024;
|
||||
SET @orig_file= load_file('MYSQLD_LOGFILE.orig');
|
||||
SET @copy_file= load_file('MYSQLD_LOGFILE.copy');
|
||||
@@ -34,3 +35,4 @@ STRCMP(@orig_file, @copy_file)
|
||||
1
|
||||
## Dropping tables ##
|
||||
DROP TABLE t1;
|
||||
SET @@global.max_allowed_packet= @start_value;
|
||||
|
@@ -1,30 +1,23 @@
|
||||
SET @global_start_value = @@global.innodb_commit_concurrency;
|
||||
SELECT @global_start_value;
|
||||
@global_start_value
|
||||
0
|
||||
10
|
||||
'#--------------------FN_DYNVARS_046_01------------------------#'
|
||||
SET @@global.innodb_commit_concurrency = 0;
|
||||
SET @@global.innodb_commit_concurrency = DEFAULT;
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
0
|
||||
10
|
||||
'#---------------------FN_DYNVARS_046_02-------------------------#'
|
||||
SET innodb_commit_concurrency = 1;
|
||||
ERROR HY000: Variable 'innodb_commit_concurrency' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SELECT @@innodb_commit_concurrency;
|
||||
@@innodb_commit_concurrency
|
||||
0
|
||||
10
|
||||
SELECT local.innodb_commit_concurrency;
|
||||
ERROR 42S02: Unknown table 'local' in field list
|
||||
SET global innodb_commit_concurrency = 0;
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
0
|
||||
ERROR HY000: Incorrect arguments to SET
|
||||
'#--------------------FN_DYNVARS_046_03------------------------#'
|
||||
SET @@global.innodb_commit_concurrency = 0;
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
0
|
||||
SET @@global.innodb_commit_concurrency = 1;
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
@@ -35,27 +28,17 @@ SELECT @@global.innodb_commit_concurrency;
|
||||
1000
|
||||
'#--------------------FN_DYNVARS_046_04-------------------------#'
|
||||
SET @@global.innodb_commit_concurrency = -1;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect commit_concurrency value: '18446744073709551615'
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
SELECT @@global.innodb_commit_concurrency IN (4294967295,18446744073709551615);
|
||||
@@global.innodb_commit_concurrency IN (4294967295,18446744073709551615)
|
||||
1
|
||||
SET @@global.innodb_commit_concurrency = "T";
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
SET @@global.innodb_commit_concurrency = "Y";
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
SET @@global.innodb_commit_concurrency = 1001;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect commit_concurrency value: '1001'
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
1001
|
||||
'#----------------------FN_DYNVARS_046_05------------------------#'
|
||||
SELECT @@global.innodb_commit_concurrency =
|
||||
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
@@ -65,32 +48,33 @@ VARIABLE_VALUE
|
||||
1
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
1001
|
||||
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='innodb_commit_concurrency';
|
||||
VARIABLE_VALUE
|
||||
1000
|
||||
1001
|
||||
'#---------------------FN_DYNVARS_046_06-------------------------#'
|
||||
SET @@global.innodb_commit_concurrency = OFF;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
1001
|
||||
SET @@global.innodb_commit_concurrency = ON;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_commit_concurrency'
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1000
|
||||
1001
|
||||
'#---------------------FN_DYNVARS_046_07----------------------#'
|
||||
SET @@global.innodb_commit_concurrency = TRUE;
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
1
|
||||
SET @@global.innodb_commit_concurrency = FALSE;
|
||||
ERROR HY000: Incorrect arguments to SET
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
0
|
||||
1
|
||||
SET @@global.innodb_commit_concurrency = @global_start_value;
|
||||
SELECT @@global.innodb_commit_concurrency;
|
||||
@@global.innodb_commit_concurrency
|
||||
0
|
||||
10
|
||||
|
@@ -1,7 +1,7 @@
|
||||
SET @start_value = @@global.log_output;
|
||||
SELECT @start_value;
|
||||
@start_value
|
||||
FILE,TABLE
|
||||
FILE
|
||||
'#--------------------FN_DYNVARS_065_01------------------------#'
|
||||
SET @@global.log_output = FILE;
|
||||
SET @@global.log_output = DEFAULT;
|
||||
@@ -172,4 +172,4 @@ TABLE
|
||||
SET @@global.log_output = @start_value;
|
||||
SELECT @@global.log_output;
|
||||
@@global.log_output
|
||||
FILE,TABLE
|
||||
FILE
|
||||
|
@@ -1,6 +1,5 @@
|
||||
SET @start_value= @@global.log_output;
|
||||
SET @start_general_log= @@global.general_log;
|
||||
SET @start_general_log_file= @@global.general_log_file;
|
||||
'#--------------------FN_DYNVARS_065_01-------------------------#'
|
||||
SET @@global.log_output = 'NONE';
|
||||
'connect (con1,localhost,root,,,,)'
|
||||
@@ -53,7 +52,7 @@ count(*)
|
||||
DROP TABLE t1;
|
||||
connection default;
|
||||
SET @@global.general_log= 'OFF';
|
||||
SET @@global.general_log_file= @start_general_log_file;
|
||||
SET @@global.general_log_file= '/home/horst/bzr/5.1-52501/mysql-test/var/mysqld.1/mysqld.log';
|
||||
SET @@global.log_output= @start_value;
|
||||
SET @@global.general_log= @start_general_log;
|
||||
SET @@global.general_log= 'ON';
|
||||
|
6
mysql-test/suite/sys_vars/r/secure_file_priv2.result
Normal file
6
mysql-test/suite/sys_vars/r/secure_file_priv2.result
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE t1 (c1 INT);
|
||||
LOAD DATA INFILE "t1.MYI" into table t1;
|
||||
ERROR HY000: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
|
||||
LOAD DATA INFILE "/test" into table t1;
|
||||
ERROR HY000: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
|
||||
DROP TABLE t1;
|
@@ -1,4 +1,4 @@
|
||||
SET @start_value = @@global.slow_query_log_file;
|
||||
slowtest.log
|
||||
'#---------------------FN_DYNVARS_004_01-------------------------#'
|
||||
SET @@global.slow_query_log_file = DEFAULT;
|
||||
SELECT RIGHT(@@global.slow_query_log_file,15);
|
||||
@@ -14,4 +14,4 @@ FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='slow_query_log_file';
|
||||
@@global.slow_query_log_file = VARIABLE_VALUE
|
||||
1
|
||||
SET @@global.slow_query_log_file= @start_value;
|
||||
SET @@global.slow_query_log_file= 'slowtest.log';
|
||||
|
@@ -8,14 +8,6 @@ ERROR HY000: Variable 'timestamp' is a SESSION variable and can't be used with S
|
||||
'#--------------------FN_DYNVARS_001_03------------------------#'
|
||||
SET @@timestamp = 0;
|
||||
'Setting 0 resets timestamp to session default timestamp'
|
||||
SET @@timestamp = 123456789123456;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
2249167232
|
||||
SET @@timestamp = 60*60*60*60*365;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
435432704
|
||||
SET @@timestamp = -1000000000;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
@@ -66,3 +58,7 @@ ERROR 42S02: Unknown table 'session' in field list
|
||||
SELECT timestamp = @@session.timestamp;
|
||||
ERROR 42S22: Unknown column 'timestamp' in 'field list'
|
||||
SET @@timestamp = @session_start_value;
|
||||
SET @@timestamp = 123456789123456;
|
||||
ERROR HY000: This version of MySQL doesn't support dates later than 2038
|
||||
SET @@timestamp = 60*60*60*60*365;
|
||||
ERROR HY000: This version of MySQL doesn't support dates later than 2038
|
||||
|
@@ -8,14 +8,6 @@ ERROR HY000: Variable 'timestamp' is a SESSION variable and can't be used with S
|
||||
'#--------------------FN_DYNVARS_001_03------------------------#'
|
||||
SET @@timestamp = 0;
|
||||
'Setting 0 resets timestamp to session default timestamp'
|
||||
SET @@timestamp = 123456789123456;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
123456789123456
|
||||
SET @@timestamp = 60*60*60*60*365;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
4730400000
|
||||
SET @@timestamp = -1000000000;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
@@ -66,3 +58,11 @@ ERROR 42S02: Unknown table 'session' in field list
|
||||
SELECT timestamp = @@session.timestamp;
|
||||
ERROR 42S22: Unknown column 'timestamp' in 'field list'
|
||||
SET @@timestamp = @session_start_value;
|
||||
SET @@timestamp = 123456789123456;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
123456789123456
|
||||
SET @@timestamp = 60*60*60*60*365;
|
||||
SELECT @@timestamp;
|
||||
@@timestamp
|
||||
4730400000
|
||||
|
@@ -100,8 +100,6 @@ SELECT @@session.tmp_table_size;
|
||||
SET @@session.tmp_table_size = "Test";
|
||||
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
|
||||
SET @@session.tmp_table_size = 12345678901;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect tmp_table_size value: '12345678901'
|
||||
SELECT @@session.tmp_table_size IN (12345678901,4294967295);
|
||||
@@session.tmp_table_size IN (12345678901,4294967295)
|
||||
1
|
||||
|
Reference in New Issue
Block a user