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:
@@ -17,7 +17,11 @@ select * from information_schema.session_variables where variable_name='old';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
OLD OFF
|
||||
set global old=1;
|
||||
Warnings:
|
||||
Warning 1287 '@@old' is deprecated and will be removed in a future release. Please use '@@old_mode' instead
|
||||
set session old=1;
|
||||
Warnings:
|
||||
Warning 1287 '@@old' is deprecated and will be removed in a future release. Please use '@@old_mode' instead
|
||||
select @@global.old;
|
||||
@@global.old
|
||||
1
|
||||
@@ -25,3 +29,5 @@ select @@session.old;
|
||||
@@session.old
|
||||
1
|
||||
set @@global.old=DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 '@@old' is deprecated and will be removed in a future release. Please use '@@old_mode' instead
|
||||
|
Reference in New Issue
Block a user