mariadb/mysql-test/suite/sys_vars/r/old_basic.result
Rucha Deodhar 5945e420f1 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.
2022-04-20 00:30:22 +05:30

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