2008-04-22 15:04:10 +02:00
|
|
|
** 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;
|
2008-04-23 11:36:17 +02:00
|
|
|
SELECT @ts_new - @ts_old >= 1 AS 'Timestamp Difference';
|
2008-04-22 15:04:10 +02:00
|
|
|
Timestamp Difference
|
|
|
|
1
|
2008-04-23 11:36:17 +02:00
|
|
|
1 means >=1 expected is true
|
2008-04-22 15:04:10 +02:00
|
|
|
** Connection con1 **
|
|
|
|
SET @ts_old = @@SESSION.timestamp;
|
|
|
|
waiting 4 sec
|
|
|
|
SET @ts_new = @@SESSION.timestamp;
|
2008-04-23 11:36:17 +02:00
|
|
|
SELECT @ts_new - @ts_old >= 4 AS 'Timestamp Difference';
|
2008-04-22 15:04:10 +02:00
|
|
|
Timestamp Difference
|
2008-04-23 11:36:17 +02:00
|
|
|
1
|
|
|
|
1 means >=4 expected is true
|
2008-04-22 15:04:10 +02:00
|
|
|
'#-----------------------------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
|
2008-04-23 11:36:17 +02:00
|
|
|
1 means >=1 expected is true
|
2008-04-22 15:04:10 +02:00
|
|
|
** Cleanup **
|
|
|
|
** Connection default **
|
|
|
|
Disconnecting Connections con0, con1
|