Commit 769f45f9 authored by hhunger@hh-nb.hungers's avatar hhunger@hh-nb.hungers

Merge hh-nb.hungers:/work/trees/mysql-5.1-build-src-clean

into  hh-nb.hungers:/work/merge/mysql-5.1-build-repogca
parents 61469fa9 a6ab8d9e
......@@ -54,7 +54,7 @@ LOCK TABLE t1 WRITE;
SET @startTime = NOW();
SELECT * FROM t1;
SET @endTime = NOW();
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime));
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)) >= 2;
SELECT @TimeDifference;|
** Connection con0 **
Sleeping 2 Seconds before unlock
......@@ -66,7 +66,7 @@ id value
2 val2
3 val3
@TimeDifference
2
1
Testing for value OFF
** Connection con0 **
SET SESSION query_cache_wlock_invalidate = OFF;
......
......@@ -24,10 +24,10 @@ SET @ts_old = @@SESSION.timestamp;
Changing time zone
SET time_zone = 'MET';
SET @ts_new = @@SESSION.timestamp;
SELECT @ts_new - @ts_old AS 'Timestamp Difference';
SELECT @ts_new - @ts_old >= 1 AS 'Timestamp Difference';
Timestamp Difference
1
1 Expected
>=1 Expected
** Cleanup **
** Connection default **
Disconnecting Connections con0, con1
......@@ -19,7 +19,9 @@
# #
###############################################################################
--source include/not_embedded.inc
--source include/have_innodb.inc
--echo '#--------------------FN_DYNVARS_048_01-------------------------#'
####################################################################
# Check if setting innodb_table_locks is changed in new connection #
......
......@@ -136,7 +136,7 @@ send
SET @startTime = NOW();
SELECT * FROM t1;
SET @endTime = NOW();
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime));
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)) >= 2;
SELECT @TimeDifference;|
delimiter ;|
......
......@@ -64,8 +64,8 @@ SET @ts_old = @@SESSION.timestamp;
--echo Changing time zone
SET time_zone = 'MET';
SET @ts_new = @@SESSION.timestamp;
SELECT @ts_new - @ts_old AS 'Timestamp Difference';
--echo 1 Expected
SELECT @ts_new - @ts_old >= 1 AS 'Timestamp Difference';
--echo >=1 Expected
#
# Cleanup
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment