mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix for Bug#32748: Inconsistent handling of assignments to
general_log_file/slow_query_log_file. The problem was that log file path was rejected if directory path was empty. The fix is to reject log file path only if it is entirely empty.
This commit is contained in:
@ -249,4 +249,25 @@ set global slow_query_log_file= NULL;
|
||||
ERROR 42000: Variable 'slow_query_log_file' can't be set to the value of 'NULL'
|
||||
set global general_log_file= @old_general_log_file;
|
||||
set global slow_query_log_file= @old_slow_query_log_file;
|
||||
|
||||
# --
|
||||
# -- Bug#32748: Inconsistent handling of assignments to
|
||||
# -- general_log_file/slow_query_log_file.
|
||||
# --
|
||||
|
||||
SET @general_log_file_saved = @@global.general_log_file;
|
||||
SET @slow_query_log_file_saved = @@global.slow_query_log_file;
|
||||
|
||||
SET GLOBAL general_log_file = 'bug32748.query.log';
|
||||
SET GLOBAL slow_query_log_file = 'bug32748.slow.log';
|
||||
|
||||
SHOW VARIABLES LIKE '%log_file';
|
||||
Variable_name Value
|
||||
general_log_file bug32748.query.log
|
||||
slow_query_log_file bug32748.slow.log
|
||||
|
||||
SET GLOBAL general_log_file = @general_log_file_saved;
|
||||
SET GLOBAL slow_query_log_file = @slow_query_log_file_saved;
|
||||
|
||||
# -- End of Bug#32748.
|
||||
End of 5.1 tests
|
||||
|
@ -231,6 +231,34 @@ set global slow_query_log_file= NULL;
|
||||
set global general_log_file= @old_general_log_file;
|
||||
set global slow_query_log_file= @old_slow_query_log_file;
|
||||
|
||||
###########################################################################
|
||||
|
||||
--echo
|
||||
--echo # --
|
||||
--echo # -- Bug#32748: Inconsistent handling of assignments to
|
||||
--echo # -- general_log_file/slow_query_log_file.
|
||||
--echo # --
|
||||
|
||||
--echo
|
||||
SET @general_log_file_saved = @@global.general_log_file;
|
||||
SET @slow_query_log_file_saved = @@global.slow_query_log_file;
|
||||
|
||||
--echo
|
||||
SET GLOBAL general_log_file = 'bug32748.query.log';
|
||||
SET GLOBAL slow_query_log_file = 'bug32748.slow.log';
|
||||
|
||||
--echo
|
||||
SHOW VARIABLES LIKE '%log_file';
|
||||
|
||||
--echo
|
||||
SET GLOBAL general_log_file = @general_log_file_saved;
|
||||
SET GLOBAL slow_query_log_file = @slow_query_log_file_saved;
|
||||
|
||||
--echo
|
||||
--echo # -- End of Bug#32748.
|
||||
|
||||
###########################################################################
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
--enable_ps_protocol
|
||||
|
Reference in New Issue
Block a user