Commit e130724e authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

merge

parents f668b4ad 70517480
...@@ -100,19 +100,19 @@ INSERT DELAYED INTO t1 VALUES('21'); ...@@ -100,19 +100,19 @@ INSERT DELAYED INTO t1 VALUES('21');
INSERT DELAYED INTO t1 VALUES('22');| INSERT DELAYED INTO t1 VALUES('22');|
** Connection con0 ** ** Connection con0 **
Asynchronous execute Asynchronous execute
SELECT COUNT(*) = 22 FROM t1; SELECT COUNT(*) BETWEEN 6 AND 22 FROM t1;
** Connection default ** ** Connection default **
** Wait till con0 is blocked ** ** Wait till con0 is blocked **
UNLOCK TABLES; UNLOCK TABLES;
** Connection con1 ** ** Connection con1 **
** Connection con0 ** ** Connection con0 **
Asynchronous "reap" result Asynchronous "reap" result
COUNT(*) = 22 COUNT(*) BETWEEN 6 AND 22
1 1
** Connection default** ** Connection default**
Checking if the delayed insert gives the same result afterwards Checking if the delayed insert gives the same result afterwards
SELECT COUNT(*) = 22 FROM t1; SELECT COUNT(*) BETWEEN 6 AND 22 FROM t1;
COUNT(*) = 22 COUNT(*) BETWEEN 6 AND 22
1 1
** Connection default** ** Connection default**
DROP TABLE t1; DROP TABLE t1;
......
...@@ -205,7 +205,9 @@ let $wait_condition= ...@@ -205,7 +205,9 @@ let $wait_condition=
WHERE variable_name like 'Not_flushed_delayed_rows'; WHERE variable_name like 'Not_flushed_delayed_rows';
--source include/wait_condition.inc --source include/wait_condition.inc
--echo Asynchronous execute --echo Asynchronous execute
let $my_select= SELECT COUNT(*) = 22 FROM t1; # Due to performance and server behaveiour the test observes values between 6 and 22.
# In any case the value must not be outside of that range.
let $my_select= SELECT COUNT(*) BETWEEN 6 AND 22 FROM t1;
send; send;
eval $my_select; eval $my_select;
......
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