mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Seventh set of fixes for bug 35988.
This commit is contained in:
33
mysql-test/r/timestamp_func.result
Normal file
33
mysql-test/r/timestamp_func.result
Normal file
@@ -0,0 +1,33 @@
|
||||
** Setup **
|
||||
|
||||
** Connecting con0 using root **
|
||||
** Connecting con1 using root **
|
||||
'#-----------------------------FN_DYNVARS_179_01------------------#'
|
||||
** Connection con0 **
|
||||
SET @ts_old = @@SESSION.timestamp;
|
||||
waiting 1 sec
|
||||
SET @ts_new = @@SESSION.timestamp;
|
||||
SELECT @ts_new - @ts_old AS 'Timestamp Difference';
|
||||
Timestamp Difference
|
||||
1
|
||||
1 Expected
|
||||
** Connection con1 **
|
||||
SET @ts_old = @@SESSION.timestamp;
|
||||
waiting 4 sec
|
||||
SET @ts_new = @@SESSION.timestamp;
|
||||
SELECT @ts_new - @ts_old AS 'Timestamp Difference';
|
||||
Timestamp Difference
|
||||
4
|
||||
4 Expected
|
||||
'#-----------------------------FN_DYNVARS_179_02---------------------#'
|
||||
SET @ts_old = @@SESSION.timestamp;
|
||||
Changing time zone
|
||||
SET time_zone = 'MET';
|
||||
SET @ts_new = @@SESSION.timestamp;
|
||||
SELECT @ts_new - @ts_old >= 1 AS 'Timestamp Difference';
|
||||
Timestamp Difference
|
||||
1
|
||||
>=1 Expected
|
||||
** Cleanup **
|
||||
** Connection default **
|
||||
Disconnecting Connections con0, con1
|
Reference in New Issue
Block a user