mariadb/mysql-test/suite/sys_vars/r/old_basic.result
Sergei Golubchik 76f0b94bb0 merge with 5.3
sql/sql_insert.cc:
  CREATE ... IF NOT EXISTS may do nothing, but
  it is still not a failure. don't forget to my_ok it.
  ******
  CREATE ... IF NOT EXISTS may do nothing, but
  it is still not a failure. don't forget to my_ok it.
sql/sql_table.cc:
  small cleanup
  ******
  small cleanup
2011-10-19 21:45:18 +02:00

27 lines
565 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;
set session old=1;
select @@global.old;
@@global.old
1
select @@session.old;
@@session.old
1
set @@global.old=DEFAULT;