diff options
author | unknown <monty@hundin.mysql.fi> | 2001-06-12 11:59:14 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-06-12 11:59:14 +0300 |
commit | 01c886ee22bd87b27348092d60a256b6735c3729 (patch) | |
tree | 4e438515e2f773e374dc634cf25249392ab69fc1 /mysql-test | |
parent | 8b76fb7f3ef18727fcc1b06733fd190a0741a321 (diff) | |
download | mariadb-git-01c886ee22bd87b27348092d60a256b6735c3729.tar.gz |
Added --verbose option to mysqlshow
Fixes for making distribution
Build-tools/Do-compile:
Added --no-strip option
Docs/manual.texi:
Changelog and some fixes to comparison section
client/mysqlshow.c:
Added --verbose option
mysql-test/r/create.result:
Test of CREATE ... SELECT with keys
mysql-test/t/create.test:
Test of CREATE ... SELECT with keys
scripts/make_binary_distribution.sh:
Changed to use long options
sql-bench/Comments/postgres.benchmark:
update
sql-bench/server-cfg.sh:
update to use 'vacuum analyze'
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/create.result | 4 | ||||
-rw-r--r-- | mysql-test/t/create.test | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index f32c9b0bc80..7940d51868a 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -8,3 +8,7 @@ b 1 10000000001 a$1 $b c$ 1 2 3 +table type possible_keys key key_len ref rows Extra +t2 ref B B 21 const 1 where used +a B +3 world diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test index a5224cd0318..d45d013c9fb 100644 --- a/mysql-test/t/create.test +++ b/mysql-test/t/create.test @@ -2,6 +2,7 @@ # Check some special create statements. # +drop table if exists t1,t2; create table t1 (b char(0)); insert into t1 values (""),(null); select * from t1; @@ -57,3 +58,14 @@ select a$1, $b, c$ from test_$1.$test1; create table test_$1.test2$ (a int); drop table test_$1.test2$; drop database test_$1; + +# +# Test of CREATE ... SELECT with indexes +# + +create table t1 (a int auto_increment not null primary key, B CHAR(20)); +insert into t1 (b) values ("hello"),("my"),("world"); +create table t2 (key (b)) select * from t1; +explain select * from t2 where b="world"; +select * from t2 where b="world"; +drop table t1,t2; |