mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-28029: No warnings if server starts with "--old"
Analysis: When --old option is used, the corresponding --old-mode variables are set but warning is not given. Fix: Use sql_print_warning() to give warning.
This commit is contained in:
parent
5945e420f1
commit
72a1250585
1 changed files with 2 additions and 0 deletions
|
@ -8496,6 +8496,8 @@ static int get_options(int *argc_ptr, char ***argv_ptr)
|
|||
global_system_variables.old_behavior|= (OLD_MODE_NO_PROGRESS_INFO |
|
||||
OLD_MODE_IGNORE_INDEX_ONLY_FOR_JOIN |
|
||||
OLD_MODE_COMPAT_5_1_CHECKSUM);
|
||||
sql_print_warning("--old is deprecated and will be removed in a future "
|
||||
"release. Please use --old-mode instead. ");
|
||||
}
|
||||
|
||||
if (global_system_variables.net_buffer_length >
|
||||
|
|
Loading…
Reference in a new issue