summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-21 15:39:01 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-21 15:39:01 +0200
commit5975e2364942dfcf8bca2fcc8e3107b16dd2fa46 (patch)
tree264958e2dfc0a050b24d3c8d4211720608f2435e /mysql-test/r
parent9edd1e71756cb4c85730341c8075168db6be7a9f (diff)
parentaf4f887129e009ba7c097a4b03db92ef1acbc25e (diff)
downloadmariadb-git-5975e2364942dfcf8bca2fcc8e3107b16dd2fa46.tar.gz
Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0
Docs/manual.texi: Auto merged
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/create.result9
-rw-r--r--mysql-test/r/myisam.result17
2 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result
index 5f14de18735..1bb3249bdc5 100644
--- a/mysql-test/r/create.result
+++ b/mysql-test/r/create.result
@@ -68,3 +68,12 @@ select * from t2 where b="world";
a B
3 world
drop table t1,t2;
+create table t1(x varchar(50) );
+create table t2 select x from t1 where 1=2;
+describe t1;
+Field Type Null Key Default Extra
+x varchar(50) YES NULL
+describe t2;
+Field Type Null Key Default Extra
+x char(50) YES NULL
+drop table t1,t2;
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;