mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-24920: Merge "old" SQL variable to "old_mode" sql variable
Analysis: There are 2 server variables- "old_mode" and "old". "old" is no longer needed as "old_mode" has replaced it (however still used in some places in the code). "old_mode" and "old" has same purpose- emulate behavior from previous MariaDB versions. So they can be merged to avoid confusion. Fix: Deprecate "old" variable and create another mode for @@old_mode to mimic behavior of previous "old" variable. Create specific modes for specifix task that --old sql variable was doing earlier and use the new modes instead.
This commit is contained in:
@@ -192,6 +192,8 @@ enum enum_binlog_row_image {
|
||||
#define OLD_MODE_NO_PROGRESS_INFO (1 << 1)
|
||||
#define OLD_MODE_ZERO_DATE_TIME_CAST (1 << 2)
|
||||
#define OLD_MODE_UTF8_IS_UTF8MB3 (1 << 3)
|
||||
#define OLD_MODE_IGNORE_INDEX_ONLY_FOR_JOIN (1 << 4)
|
||||
#define OLD_MODE_COMPAT_5_1_CHECKSUM (1 << 5)
|
||||
|
||||
extern char internal_table_name[2];
|
||||
extern char empty_c_string[1];
|
||||
|
Reference in New Issue
Block a user