[openxs@chief p5.6]$ bin/mysql --no-defaults -uroot test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.17-65.0 MySQL Community Server (GPL)
Copyright (c) 2009-2014 Percona LLC and/or its affiliates
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
This is easy to confirm:
[openxs@chief p5.6]$ bin/mysql --no-defaults -uroot test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.17-65.0 MySQL Community Server (GPL)
Copyright (c) 2009-2014 Percona LLC and/or its affiliates
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set session timestamp=4646464;
Query OK, 0 rows affected (0.00 sec)
mysql> select @@timestamp;
+----------------+
| @@timestamp |
+----------------+
| 4646464.000000 |
+----------------+
1 row in set (0.00 sec)
mysql> select @@timestamp;
+----------------+
| @@timestamp |
+----------------+
| 4646464.000000 |
+----------------+
1 row in set (0.00 sec)
mysql> set session timestamp=default;
Query OK, 0 rows affected (0.00 sec)
mysql> select @@timestamp; ------- ------+ ------- ------+ ------- ------+
+------
| @@timestamp |
+------
| 1405411683.154843 |
+------
1 row in set (0.00 sec)
mysql> select @@timestamp; ------- ------+ ------- ------+ ------- ------+
+------
| @@timestamp |
+------
| 1405411684.197364 |
+------
1 row in set (0.00 sec)
mysql> set statement timestamp=4646464 for select @@timestamp;
+----------------+
| @@timestamp |
+----------------+
| 4646464.000000 |
+----------------+
1 row in set (0.00 sec)
mysql> select @@timestamp;
+----------------+
| @@timestamp |
+----------------+
| 4646464.000000 |
+----------------+
1 row in set (0.00 sec)
mysql> select @@timestamp;
+----------------+
| @@timestamp |
+----------------+
| 4646464.000000 |
+----------------+
1 row in set (0.00 sec)