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'
