mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
A patch for Bug#34820: log_output can be set to illegal value.
We have "set" variables, which can accept empty values (like sql_mode), and which can not (like log_output). The problem was that the code does not distinguish them and allow empty values for every set variable. The fix is to introduce an attribute of a set variable telling whether it can accept empty values.
This commit is contained in:
@ -778,3 +778,20 @@ set global thread_cache_size =@my_thread_cache_size;
|
||||
--replace_column 2 #
|
||||
show global variables where Variable_name='table_definition_cache' or
|
||||
Variable_name='table_lock_wait_timeout';
|
||||
|
||||
###########################################################################
|
||||
|
||||
--echo
|
||||
--echo # --
|
||||
--echo # -- Bug#34820: log_output can be set to illegal value.
|
||||
--echo # --
|
||||
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET GLOBAL log_output = '';
|
||||
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET GLOBAL log_output = 0;
|
||||
|
||||
--echo
|
||||
--echo # -- End of Bug#34820.
|
||||
|
||||
|
Reference in New Issue
Block a user