diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-27 22:02:26 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-27 22:02:26 +0200 |
commit | cde34dfbf3721769894f60eb430bdf6034ebc3b9 (patch) | |
tree | dea1fe188d540e7416600ce788e45b0314b7ed6a /mysql-test/t/archive.test | |
parent | 758f5d0a59f40b24d05d8e409131138afb0880e1 (diff) | |
download | mariadb-git-cde34dfbf3721769894f60eb430bdf6034ebc3b9.tar.gz |
Little different behaviour in 5.0 and merge with new tests required these changes
mysql-test/r/archive.result:
Changed order of tests so that the are before the unpredictable INSERT DELAYED
Warning is produced during the rename
mysql-test/t/archive.test:
Changed order of tests so that the are before the unpredictable INSERT DELAYED
Warning is produced during the rename
Diffstat (limited to 'mysql-test/t/archive.test')
-rw-r--r-- | mysql-test/t/archive.test | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/mysql-test/t/archive.test b/mysql-test/t/archive.test index 9d027e65c49..9d25524da5f 100644 --- a/mysql-test/t/archive.test +++ b/mysql-test/t/archive.test @@ -1289,6 +1289,18 @@ select fld3 from t2 where (fld3 like "C%" and fld3 = "Chantilly"); select fld1,fld3 from t2 where fld1 like "25050%"; select fld1,fld3 from t2 where fld1 like "25050_"; + +# +# Test rename of table +# +create table t3 engine=archive select * from t2; +select * from t3 where fld3='bonfire'; +select count(*) from t3; +rename table t3 to t4; +select * from t4 where fld3='bonfire'; +select count(*) from t4; + + # # Test for insert after select # @@ -1308,19 +1320,9 @@ INSERT INTO t2 VALUES (1,000001,00,'Omaha','teethe','neat','') , (2,011401,37,'b SELECT * FROM t2; # Just test syntax, we will never know if the out put is right or wrong +# Must be the last test INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''); # # Cleanup, test is over # - -# -# Test rename of table -# -create table t3 engine=archive select * from t2; -select * from t3 where fld3='bonfire'; -select count(*) from t3; -rename table t3 to t4; -select * from t4 where fld3='bonfire'; -select count(*) from t4; - drop table t1, t2, t4; |