Commit adf397e7 authored by unknown's avatar unknown

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

into  hh-nb.hungers:/work/merge/mysql-5.1-build-repogca


BitKeeper/deleted/.del-query_cache_wlock_invalidate_func.result:
  Delete: mysql-test/r/query_cache_wlock_invalidate_func.result
BitKeeper/deleted/.del-timestamp_func.result:
  Delete: mysql-test/r/timestamp_func.result
BitKeeper/deleted/.del-innodb_table_locks_func.test:
  Delete: mysql-test/t/innodb_table_locks_func.test
BitKeeper/deleted/.del-query_cache_wlock_invalidate_func.test:
  Delete: mysql-test/t/query_cache_wlock_invalidate_func.test
BitKeeper/deleted/.del-timestamp_func.test:
  Delete: mysql-test/t/timestamp_func.test
parents 24e55790 d526b752
...@@ -54,7 +54,7 @@ LOCK TABLE t1 WRITE; ...@@ -54,7 +54,7 @@ LOCK TABLE t1 WRITE;
SET @startTime = NOW(); SET @startTime = NOW();
SELECT * FROM t1; SELECT * FROM t1;
SET @endTime = NOW(); SET @endTime = NOW();
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)); SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)) >= 2;
SELECT @TimeDifference;| SELECT @TimeDifference;|
** Connection con0 ** ** Connection con0 **
Sleeping 2 Seconds before unlock Sleeping 2 Seconds before unlock
...@@ -66,7 +66,7 @@ id value ...@@ -66,7 +66,7 @@ id value
2 val2 2 val2
3 val3 3 val3
@TimeDifference @TimeDifference
2 1
Testing for value OFF Testing for value OFF
** Connection con0 ** ** Connection con0 **
SET SESSION query_cache_wlock_invalidate = OFF; SET SESSION query_cache_wlock_invalidate = OFF;
......
...@@ -24,10 +24,10 @@ SET @ts_old = @@SESSION.timestamp; ...@@ -24,10 +24,10 @@ SET @ts_old = @@SESSION.timestamp;
Changing time zone Changing time zone
SET time_zone = 'MET'; SET time_zone = 'MET';
SET @ts_new = @@SESSION.timestamp; SET @ts_new = @@SESSION.timestamp;
SELECT @ts_new - @ts_old AS 'Timestamp Difference'; SELECT @ts_new - @ts_old >= 1 AS 'Timestamp Difference';
Timestamp Difference Timestamp Difference
1 1
1 Expected >=1 Expected
** Cleanup ** ** Cleanup **
** Connection default ** ** Connection default **
Disconnecting Connections con0, con1 Disconnecting Connections con0, con1
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
# # # #
############################################################################### ###############################################################################
--source include/not_embedded.inc
--source include/have_innodb.inc --source include/have_innodb.inc
--echo '#--------------------FN_DYNVARS_048_01-------------------------#' --echo '#--------------------FN_DYNVARS_048_01-------------------------#'
#################################################################### ####################################################################
# Check if setting innodb_table_locks is changed in new connection # # Check if setting innodb_table_locks is changed in new connection #
......
...@@ -136,7 +136,7 @@ send ...@@ -136,7 +136,7 @@ send
SET @startTime = NOW(); SET @startTime = NOW();
SELECT * FROM t1; SELECT * FROM t1;
SET @endTime = NOW(); SET @endTime = NOW();
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)); SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)) >= 2;
SELECT @TimeDifference;| SELECT @TimeDifference;|
delimiter ;| delimiter ;|
......
...@@ -64,8 +64,8 @@ SET @ts_old = @@SESSION.timestamp; ...@@ -64,8 +64,8 @@ SET @ts_old = @@SESSION.timestamp;
--echo Changing time zone --echo Changing time zone
SET time_zone = 'MET'; SET time_zone = 'MET';
SET @ts_new = @@SESSION.timestamp; SET @ts_new = @@SESSION.timestamp;
SELECT @ts_new - @ts_old AS 'Timestamp Difference'; SELECT @ts_new - @ts_old >= 1 AS 'Timestamp Difference';
--echo 1 Expected --echo >=1 Expected
# #
# Cleanup # 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