diff options
author | unknown <msvensson@neptunus.(none)> | 2006-12-11 16:43:21 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-12-11 16:43:21 +0100 |
commit | 58558f0686973d643525b0efd40304179496b18e (patch) | |
tree | ae8b18683da3bc2fe5d24f617b12e8b6b671ed2a /mysql-test/t/archive.test | |
parent | 49b4cf286f8f2eff1336684caf373ac125a94d06 (diff) | |
download | mariadb-git-58558f0686973d643525b0efd40304179496b18e.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.test | 10 |
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; |