diff options
author | unknown <monty@mysql.com> | 2004-09-01 04:12:09 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-09-01 04:12:09 +0300 |
commit | fe937a2b1b9a795df9ff71cd39b58905c9f8be69 (patch) | |
tree | 4ad5995c2fe0e62dfd3c25bcb2a946ad44728c19 /mysql-test/t/lowercase_table.test | |
parent | 8122a679448389874e9062f13df0f900a3c082a6 (diff) | |
parent | 38105ee84566015ea5941630cbb6eb94f92233a9 (diff) | |
download | mariadb-git-fe937a2b1b9a795df9ff71cd39b58905c9f8be69.tar.gz |
Merge with 4.0
BitKeeper/etc/logging_ok:
auto-union
BitKeeper/deleted/.del-acconfig.h~8d2e3113fc8056da:
Auto merged
BitKeeper/deleted/.del-convert.cc~437689acaffb7446:
Auto merged
BitKeeper/deleted/.del-flush_block_commit-master.opt~3bcd295d5bf68796:
Auto merged
BitKeeper/deleted/.del-message.mc:
Delete: VC++Files/sql/message.mc
BitKeeper/deleted/.del-mysql_install.c~8c089740d79a92:
Auto merged
BitKeeper/deleted/.del-win1251.conf~b6bb6681f02917b6:
Auto merged
Build-tools/Bootstrap:
Auto merged
client/mysql.cc:
Auto merged
client/mysqladmin.c:
Auto merged
client/mysqlbinlog.cc:
Auto merged
client/mysqlcheck.c:
Auto merged
client/mysqldump.c:
Auto merged
client/mysqlimport.c:
Auto merged
client/mysqlmanager-pwgen.c:
Auto merged
client/mysqlshow.c:
Auto merged
client/mysqltest.c:
Auto merged
extra/my_print_defaults.c:
Auto merged
extra/perror.c:
Auto merged
extra/resolve_stack_dump.c:
Auto merged
extra/resolveip.c:
Auto merged
include/m_string.h:
Auto merged
include/my_getopt.h:
Auto merged
isam/isamchk.c:
Auto merged
isam/pack_isam.c:
Auto merged
myisam/mi_test1.c:
Auto merged
myisam/myisamchk.c:
Auto merged
myisam/myisampack.c:
Auto merged
sql/field.cc:
Auto merged
sql/gen_lex_hash.cc:
Auto merged
strings/strto.c:
Auto merged
strings/strtol.c:
Auto merged
strings/strtoll.c:
Auto merged
strings/strtoull.c:
Auto merged
support-files/Makefile.am:
Auto merged
tools/mysqlmanager.c:
Auto merged
Diffstat (limited to 'mysql-test/t/lowercase_table.test')
-rw-r--r-- | mysql-test/t/lowercase_table.test | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/mysql-test/t/lowercase_table.test b/mysql-test/t/lowercase_table.test index bdfa8dfc132..602a05a7848 100644 --- a/mysql-test/t/lowercase_table.test +++ b/mysql-test/t/lowercase_table.test @@ -4,6 +4,7 @@ --disable_warnings drop table if exists t1,t2,t3,t4; +drop database if exists mysqltest; --enable_warnings create table T1 (id int primary key, Word varchar(40) not null, Index(Word)); @@ -32,6 +33,23 @@ select count(bags.a) from t1 as Bags; drop table t1; # +# Test all caps database name +# +create database mysqltest; +use MYSQLTEST; +create table t1 (a int); +select T1.a from MYSQLTEST.T1; +--error 1109 +select t1.a from MYSQLTEST.T1; +select mysqltest.t1.* from MYSQLTEST.t1; +select MYSQLTEST.t1.* from MYSQLTEST.t1; +select MYSQLTEST.T1.* from MYSQLTEST.T1; +select MYSQLTEST.T1.* from T1; +alter table t1 rename to T1; +select MYSQLTEST.t1.* from MYSQLTEST.t1; +drop database mysqltest; + +# # multiupdate/delete & --lower-case-table-names # create table t1 (a int); @@ -54,13 +72,3 @@ select C.a, c.a from t1 c, t2 C; drop table t1, t2; show tables; - -# -# Test all caps database name -# -create table t1 (a int); -select TEST.t1.* from TEST.t1; -alter table t1 rename to T1; -select TEST.t1.* from TEST.t1; -drop table t1; - |