Commit 72a12505 authored by Rucha Deodhar's avatar Rucha Deodhar

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.
parent 5945e420
......@@ -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 >
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment