summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/r/old_basic.result
blob: 1eba60ed4a79e7e7f8d895012aeeb64685d3506b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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