diff options
author | unknown <serg@serg.mysql.com> | 2002-08-31 23:18:08 +0000 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2002-08-31 23:18:08 +0000 |
commit | ffb97b49948b16ea9e53f544818dedf4b0f11697 (patch) | |
tree | 3732ba6a0c00f9e269510a87e8bbedf1a98a1642 /mysql-test | |
parent | c8f6ea2c7c0ae7521025a7ed25d5ee40bd1f9b69 (diff) | |
download | mariadb-git-ffb97b49948b16ea9e53f544818dedf4b0f11697.tar.gz |
LOCK+modify+OPTIMIZE bugfix
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/myisam.result | 2 | ||||
-rw-r--r-- | mysql-test/t/myisam.test | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result index a8f97c57d33..f57b99cf9fd 100644 --- a/mysql-test/r/myisam.result +++ b/mysql-test/r/myisam.result @@ -36,3 +36,5 @@ table type possible_keys key key_len ref rows Extra t1 ALL NULL NULL NULL NULL 4 table type possible_keys key key_len ref rows Extra t1 ALL NULL NULL NULL NULL 4 +Table Op Msg_type Msg_text +test.t1 optimize status OK diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test index eb1d9a01020..45d26993795 100644 --- a/mysql-test/t/myisam.test +++ b/mysql-test/t/myisam.test @@ -64,3 +64,14 @@ explain select a,b from t1 order by b; explain select a,b from t1; explain select a,b,c from t1; drop table t1; + +# +# Test of OPTIMIZE of locked and modified tables +# +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (1), (2), (3); +LOCK TABLES t1 WRITE; +INSERT INTO t1 VALUES (1), (2), (3); +OPTIMIZE TABLE t1; +DROP TABLE t1; + |