mirror of
https://github.com/MariaDB/server.git
synced 2025-05-16 03:24:47 +03:00
Adds --general-log-file, --slow-query-log-file command- line options to match system variables of the same names. Deprecates --log, --log-slow-queries command-line option and log, log_slow_queries system-variables for v7.0; they are superseded by general_log/general_log_file and slow_query_log/slow_query_log_file, respectively. mysql-test/r/log_basic.result: Change deprecated system variable "log" to general log. mysql-test/r/log_bin_trust_routine_creators_basic.result: Change deprecation warning so it's more obvious we're referring to a variable. mysql-test/r/log_state.result: Show that all log-related server variables that should throw deprecation warnings do, and the others don't. mysql-test/r/warnings.result: Change deprecation warning so it's more obvious we're referring to a variable. mysql-test/suite/rpl/r/rpl_sp.result: Change deprecation warning so it's more obvious we're referring to a variable. mysql-test/t/log_basic.test: Change deprecated system variable "log" to general log. mysql-test/t/log_state.test: Show that all log-related server variables that should throw deprecation warnings do, and the others don't. sql/mysqld.cc: Add command-line options --general-log-file and --slow-query-log-file to match server options of the same name. Deprecated --log and --log-slow-queries command-line options; they are superseded by --general-log/ --general-log-file and --slow-query-log/--slow-query-log-file, respectively sql/set_var.cc: Deprecate system-variables log in favour of general_log, log_slow_queries in favour of slow_query_log for 7.0, both for value- and DEFAULT-setting.
122 lines
6.9 KiB
Plaintext
122 lines
6.9 KiB
Plaintext
SET @start_global_value = @@global.log_bin_trust_routine_creators;
|
|
SELECT @start_global_value;
|
|
@start_global_value
|
|
1
|
|
'#--------------------FN_DYNVARS_064_01-------------------------#'
|
|
SET @@global.log_bin_trust_routine_creators = TRUE;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SET @@global.log_bin_trust_routine_creators = DEFAULT;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
0
|
|
'#--------------------FN_DYNVARS_064_02-------------------------#'
|
|
SET @@global.log_bin_trust_routine_creators = DEFAULT;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators = 'FALSE';
|
|
@@global.log_bin_trust_routine_creators = 'FALSE'
|
|
1
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect DOUBLE value: 'FALSE'
|
|
'#--------------------FN_DYNVARS_064_03-------------------------#'
|
|
SET @@global.log_bin_trust_routine_creators = ON;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
1
|
|
SET @@global.log_bin_trust_routine_creators = OFF;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
0
|
|
SET @@global.log_bin_trust_routine_creators = 0;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
0
|
|
SET @@global.log_bin_trust_routine_creators = 1;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
1
|
|
SET @@global.log_bin_trust_routine_creators = TRUE;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
1
|
|
SET @@global.log_bin_trust_routine_creators = FALSE;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
0
|
|
'#-------------------FN_DYNVARS_064_04----------------------------#'
|
|
SET @@session.log_bin_trust_routine_creators = 0;
|
|
ERROR HY000: Variable 'log_bin_trust_routine_creators' is a GLOBAL variable and should be set with SET GLOBAL
|
|
SELECT @@session.log_bin_trust_routine_creators;
|
|
ERROR HY000: Variable 'log_bin_trust_routine_creators' is a GLOBAL variable
|
|
'#------------------FN_DYNVARS_064_05-----------------------#'
|
|
SET @@global.log_bin_trust_routine_creators = 'ONN';
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of 'ONN'
|
|
SET @@global.log_bin_trust_routine_creators = "OFFF";
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of 'OFFF'
|
|
SET @@global.log_bin_trust_routine_creators = OF;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
0
|
|
'Bug# 34828: OF is also working as OFF and no error is coming';
|
|
SET @@global.log_bin_trust_routine_creators = TTRUE;
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of 'TTRUE'
|
|
SET @@global.log_bin_trust_routine_creators = FELSE;
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of 'FELSE'
|
|
SET @@global.log_bin_trust_routine_creators = -1024;
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of '-1024'
|
|
SET @@global.log_bin_trust_routine_creators = 65536;
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of '65536'
|
|
SET @@global.log_bin_trust_routine_creators = 65530.34;
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of '65530'
|
|
SET @@global.log_bin_trust_routine_creators = test;
|
|
ERROR 42000: Variable 'log_bin_trust_routine_creators' can't be set to the value of 'test'
|
|
'#------------------FN_DYNVARS_064_06-----------------------#'
|
|
SELECT @@global.log_bin_trust_routine_creators = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='log_bin_trust_routine_creators';
|
|
@@global.log_bin_trust_routine_creators = VARIABLE_VALUE
|
|
1
|
|
SELECT @@session.log_bin_trust_routine_creators = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='log_bin_trust_routine_creators';
|
|
ERROR HY000: Variable 'log_bin_trust_routine_creators' is a GLOBAL variable
|
|
'#---------------------FN_DYNVARS_064_07----------------------#'
|
|
SET @@global.log_bin_trust_routine_creators = TRUE;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@log_bin_trust_routine_creators = @@global.log_bin_trust_routine_creators;
|
|
@@log_bin_trust_routine_creators = @@global.log_bin_trust_routine_creators
|
|
1
|
|
'#---------------------FN_DYNVARS_064_08----------------------#'
|
|
SET @@global.log_bin_trust_routine_creators = TRUE;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@log_bin_trust_routine_creators;
|
|
@@log_bin_trust_routine_creators
|
|
1
|
|
SELECT local.log_bin_trust_routine_creators;
|
|
ERROR 42S02: Unknown table 'local' in field list
|
|
SELECT session.log_bin_trust_routine_creators;
|
|
ERROR 42S02: Unknown table 'session' in field list
|
|
SELECT log_bin_trust_routine_creators = @@session.log_bin_trust_routine_creators;
|
|
ERROR 42S22: Unknown column 'log_bin_trust_routine_creators' in 'field list'
|
|
SET @@global.log_bin_trust_routine_creators = @start_global_value;
|
|
Warnings:
|
|
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 5.2. Please use '@@log_bin_trust_function_creators' instead
|
|
SELECT @@global.log_bin_trust_routine_creators;
|
|
@@global.log_bin_trust_routine_creators
|
|
1
|