mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
![Rucha Deodhar](/assets/img/avatar_default.png)
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.
33 lines
919 B
Text
33 lines
919 B
Text
select @@global.old;
|
|
@@global.old
|
|
0
|
|
select @@session.old;
|
|
@@session.old
|
|
0
|
|
show global variables like 'old';
|
|
Variable_name Value
|
|
old OFF
|
|
show session variables like 'old';
|
|
Variable_name Value
|
|
old OFF
|
|
select * from information_schema.global_variables where variable_name='old';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
OLD OFF
|
|
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
|
|
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
|