From 21259d25f3e76801631dbde560a6da5a65aa00f3 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 18 Nov 2001 14:13:09 +0200 Subject: Test of optimize table. Docs/manual.texi: Updated changelog. Update info about MERGE tables. Moved section 'Why so many open tables' mysql-test/r/create.result: Added test of types in CREATE mysql-test/t/create.test: Added test of types in CREATE sql/item_func.cc: More different values for RAND(nr) and RAND(nr+1) --- mysql-test/r/myisam.result | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'mysql-test/r/myisam.result') diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result index dae87d88765..448c1b37592 100644 --- a/mysql-test/r/myisam.result +++ b/mysql-test/r/myisam.result @@ -31,3 +31,20 @@ check table t1; Table Op Msg_type Msg_text test.t1 check status OK drop table t1; +create table t1 (a int not null auto_increment, b int not null, primary key (a), index(b)); +insert into t1 (b) values (1),(2),(2),(2),(2); +optimize table t1; +Table Op Msg_type Msg_text +test.t1 optimize status OK +show index from t1; +Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Comment +t1 0 PRIMARY 1 a A 5 NULL NULL +t1 1 b 1 b A 1 NULL NULL +optimize table t1; +Table Op Msg_type Msg_text +test.t1 optimize status Table is already up to date +show index from t1; +Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Comment +t1 0 PRIMARY 1 a A 5 NULL NULL +t1 1 b 1 b A 1 NULL NULL +drop table t1; -- cgit v1.2.1