config root man

Current Path : /usr/opt/mysql57/mysql-test/suite/sys_vars/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/opt/mysql57/mysql-test/suite/sys_vars/r/show_old_temporals_basic.result

SELECT @@session.show_old_temporals;
@@session.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SHOW SESSION VARIABLES LIKE 'show_old_temporals';
Variable_name	Value
show_old_temporals	OFF
SELECT * FROM information_schema.session_variables WHERE variable_name='show_old_temporals';
VARIABLE_NAME	VARIABLE_VALUE
SHOW_OLD_TEMPORALS	OFF
#Also can be set as a global variable.
SELECT @@global.show_old_temporals;
@@global.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SHOW GLOBAL VARIABLES LIKE 'show_old_temporals';
Variable_name	Value
show_old_temporals	OFF
SELECT * FROM information_schema.global_variables WHERE variable_name='show_old_temporals';
VARIABLE_NAME	VARIABLE_VALUE
SHOW_OLD_TEMPORALS	OFF
#Test setting the variable to various values.
#Boolean values.
SET SESSION show_old_temporals= ON;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@session.show_old_temporals;
@@session.show_old_temporals
1
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SET SESSION show_old_temporals= OFF;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@session.show_old_temporals;
@@session.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SET SESSION show_old_temporals= 1;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@session.show_old_temporals;
@@session.show_old_temporals
1
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SET SESSION show_old_temporals= 0;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@session.show_old_temporals;
@@session.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#Test for DEFAULT value.
SET SESSION show_old_temporals= DEFAULT;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@session.show_old_temporals;
@@session.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#Test for invalid value.
SET SESSION show_old_temporals= 2;
ERROR 42000: Variable 'show_old_temporals' can't be set to the value of '2'
#Test for setting the session variable
#using different syntax.
SET show_old_temporals= 1;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#Fetches the current session value for the variable.
SELECT @@show_old_temporals;
@@show_old_temporals
1
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#cleanup
SET SESSION show_old_temporals= DEFAULT;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#Test setting the global value of the variable.
#Boolean values.
SET GLOBAL show_old_temporals= ON;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@global.show_old_temporals;
@@global.show_old_temporals
1
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SET GLOBAL show_old_temporals= OFF;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@global.show_old_temporals;
@@global.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SET GLOBAL show_old_temporals= 1;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@global.show_old_temporals;
@@global.show_old_temporals
1
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SET GLOBAL show_old_temporals= 0;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@session.show_old_temporals;
@@session.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#Test for DEFAULT value.
SET GLOBAL show_old_temporals= DEFAULT;
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
SELECT @@global.show_old_temporals;
@@global.show_old_temporals
0
Warnings:
Warning	1287	'@@show_old_temporals' is deprecated and will be removed in a future release.
#Test for invalid value.
SET GLOBAL show_old_temporals= 2;
ERROR 42000: Variable 'show_old_temporals' can't be set to the value of '2'

Man Man