Commit 11fd796f authored by Sneha Modi's avatar Sneha Modi

Bug#11754150: A TEST CASE FOR BUG#6857 IS DISABLED IN SP.TEST

Unix_timestamp for time comparison has some problems...Re-using current_time for 
time comparison.
parent 8a8155f1
...@@ -2776,19 +2776,16 @@ create procedure bug6857(counter int) ...@@ -2776,19 +2776,16 @@ create procedure bug6857(counter int)
begin begin
declare t0, t1 int; declare t0, t1 int;
declare plus bool default 0; declare plus bool default 0;
set t0 = unix_timestamp(); set t0 = current_time();
while counter > 0 do while counter > 0 do
set counter = counter - 1; set counter = counter - 1;
end while; end while;
set t1 = unix_timestamp(); set t1 = current_time();
if t1 > t0 then if t1 > t0 then
set plus = 1; set plus = 1;
end if; end if;
select plus; select plus;
end| end|
call bug6857(300000)|
plus
1
drop procedure bug6857| drop procedure bug6857|
drop procedure if exists bug8757| drop procedure if exists bug8757|
create procedure bug8757() create procedure bug8757()
......
...@@ -3341,11 +3341,11 @@ begin ...@@ -3341,11 +3341,11 @@ begin
declare t0, t1 int; declare t0, t1 int;
declare plus bool default 0; declare plus bool default 0;
set t0 = unix_timestamp(); set t0 = current_time();
while counter > 0 do while counter > 0 do
set counter = counter - 1; set counter = counter - 1;
end while; end while;
set t1 = unix_timestamp(); set t1 = current_time();
if t1 > t0 then if t1 > t0 then
set plus = 1; set plus = 1;
end if; end if;
...@@ -3357,7 +3357,7 @@ end| ...@@ -3357,7 +3357,7 @@ end|
# painful. # painful.
# Make sure this takes at least one second on all machines in all builds. # Make sure this takes at least one second on all machines in all builds.
# 30000 makes it about 3 seconds on an old 1.1GHz linux. # 30000 makes it about 3 seconds on an old 1.1GHz linux.
call bug6857(300000)| #call bug6857(300000)|
drop procedure bug6857| drop procedure bug6857|
......
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