summaryrefslogtreecommitdiff
path: root/mysql-test/t/archive.test
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-12-11 16:43:21 +0100
committermsvensson@neptunus.(none) <>2006-12-11 16:43:21 +0100
commiteb1c28014245e1e3bf6c8343780e2047250a7d61 (patch)
treeae8b18683da3bc2fe5d24f617b12e8b6b671ed2a /mysql-test/t/archive.test
parent98e062a9c37bf971c3c8ec5380cce4856e0cbfe6 (diff)
downloadmariadb-git-eb1c28014245e1e3bf6c8343780e2047250a7d61.tar.gz
Wait for INSERT DELAYED to finish i.e sleep in while loop until
"select count" is one more.
Diffstat (limited to 'mysql-test/t/archive.test')
-rw-r--r--mysql-test/t/archive.test10
1 files changed, 7 insertions, 3 deletions
diff --git a/mysql-test/t/archive.test b/mysql-test/t/archive.test
index f712a770712..80533f21311 100644
--- a/mysql-test/t/archive.test
+++ b/mysql-test/t/archive.test
@@ -1345,10 +1345,14 @@ SELECT * FROM t2;
CHECK TABLE t2;
SELECT * FROM t2;
-
-# Just test syntax, we will never know if the output is right or wrong
-# Must be the last test
+# Test INSERT DELAYED and wait until the table has one more record
+SELECT COUNT(auto) FROM t2;
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
+while (`SELECT COUNT(auto)!=1214 FROM t2`)
+{
+ sleep 0.1;
+}
+SELECT COUNT(auto) FROM t2;
# Adding test for alter table
ALTER TABLE t2 DROP COLUMN fld6;