2006-09-23 14:24:45 +02:00
|
|
|
# include/wait_until_rows_count.inc
|
|
|
|
#
|
|
|
|
# SUMMARY
|
|
|
|
#
|
2007-01-19 16:33:48 +01:00
|
|
|
# Waits until SELECT count(*) = $count from $table returns true, or
|
|
|
|
# the operation times out.
|
2006-09-23 14:24:45 +02:00
|
|
|
#
|
|
|
|
# USAGE
|
|
|
|
#
|
2007-01-19 16:33:48 +01:00
|
|
|
# let $count= 5;
|
|
|
|
# let $table= t1;
|
|
|
|
# --source include/wait_until_rows_count.inc
|
2006-09-23 14:24:45 +02:00
|
|
|
#
|
|
|
|
# EXAMPLE
|
2007-01-19 16:33:48 +01:00
|
|
|
# extra/binlog/binlog_insert_delayed.test
|
2006-09-23 14:24:45 +02:00
|
|
|
#
|
|
|
|
|
2007-01-19 16:33:48 +01:00
|
|
|
let $wait_condition=
|
|
|
|
select count(*) = $count from $table;
|
|
|
|
--source include/wait_condition.inc
|