Commit 81798982 authored by unknown's avatar unknown

Test case for Bug #4792 lower_case_table_names does not resolve db.tbl.column in SELECT list

lowercase_table.result:
  New results for modified lowercase_table test
lowercase_table.test:
  Added test case for all uppercase database when running under lower_case_table_names.  This really only failed under Windows.  Bug# 4792


mysql-test/t/lowercase_table.test:
  Added test case for all uppercase database when running under lower_case_table_names.  This really only failed under Windows.  Bug# 4792
mysql-test/r/lowercase_table.result:
  New results for modified lowercase_table test
parent 32fd1ca1
......@@ -39,3 +39,12 @@ Unknown table 'T1' in field list
select count(bags.a) from t1 as Bags;
Unknown table 'bags' in field list
drop table t1;
create database foo;
use foo;
create table t1 (a int);
select FOO.t1.* from FOO.t1;
a
alter table t1 rename to T1;
select FOO.t1.* from FOO.t1;
a
drop database FOO;
......@@ -30,3 +30,14 @@ select count(T1.a) from t1;
--error 1109
select count(bags.a) from t1 as Bags;
drop table t1;
#
# Test all caps database name
#
create database foo;
use foo;
create table t1 (a int);
select FOO.t1.* from FOO.t1;
alter table t1 rename to T1;
select FOO.t1.* from FOO.t1;
drop database FOO;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment