~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/r/lowercase_table.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1,t2,t3,t4;
 
2
drop table if exists t0,t5,t6,t7,t8,t9;
 
3
drop database if exists mysqltest;
 
4
drop view if exists v0, v1, v2, v3, v4;
 
5
create table T1 (id int primary key, Word varchar(40) not null, Index(Word));
 
6
create table t4 (id int primary key, Word varchar(40) not null);
 
7
INSERT INTO T1 VALUES (1, 'a'), (2, 'b'), (3, 'c');
 
8
INSERT INTO T4 VALUES(1,'match');
 
9
SELECT * FROM t1;
 
10
id      Word
 
11
1       a
 
12
2       b
 
13
3       c
 
14
SELECT T1.id from T1 LIMIT 1;
 
15
id
 
16
1
 
17
SELECT T2.id from t1 as T2 LIMIT 1;
 
18
id
 
19
1
 
20
SELECT * from t1 left join t4 on (test.t1.id= TEST.t4.id) where TEST.t1.id >= test.t4.id;
 
21
id      Word    id      Word
 
22
1       a       1       match
 
23
SELECT T2.id from t1 as t2 LIMIT 1;
 
24
id
 
25
1
 
26
RENAME TABLE T1 TO T2;
 
27
ALTER TABLE T2 ADD new_col int not null;
 
28
ALTER TABLE T2 RENAME T3;
 
29
show tables like 't_';
 
30
Tables_in_test (t_)
 
31
t3
 
32
t4
 
33
drop table t3,t4;
 
34
create table t1 (a int);
 
35
select count(*) from T1;
 
36
count(*)
 
37
0
 
38
select count(*) from t1;
 
39
count(*)
 
40
0
 
41
select count(T1.a) from t1;
 
42
count(T1.a)
 
43
0
 
44
select count(bags.a) from t1 as Bags;
 
45
count(bags.a)
 
46
0
 
47
drop table t1;
 
48
create database mysqltest;
 
49
use MYSQLTEST;
 
50
create table t1 (a int);
 
51
select T1.a from MYSQLTEST.T1;
 
52
a
 
53
select t1.a from MYSQLTEST.T1;
 
54
a
 
55
select mysqltest.t1.* from MYSQLTEST.t1;
 
56
a
 
57
select MYSQLTEST.t1.* from MYSQLTEST.t1;
 
58
a
 
59
select MYSQLTEST.T1.* from MYSQLTEST.T1;
 
60
a
 
61
select MYSQLTEST.T1.* from T1;
 
62
a
 
63
alter table t1 rename to T1;
 
64
select MYSQLTEST.t1.* from MYSQLTEST.t1;
 
65
a
 
66
drop database mysqltest;
 
67
use test;
 
68
create table t1 (a int);
 
69
create table t2 (a int);
 
70
delete p1.*,P2.* from t1 as p1, t2 as p2 where p1.a=P2.a;
 
71
delete P1.*,p2.* from t1 as P1, t2 as P2 where P1.a=p2.a;
 
72
update t1 as p1, t2 as p2 SET p1.a=1,P2.a=1 where p1.a=P2.a;
 
73
update t1 as P1, t2 as P2 SET P1.a=1,p2.a=1 where P1.a=p2.a;
 
74
drop table t1,t2;
 
75
create table t1 (a int);
 
76
create table t2 (a int);
 
77
select * from t1 c, t2 C;
 
78
ERROR 42000: Not unique table/alias: 'C'
 
79
select C.a, c.a from t1 c, t2 C;
 
80
ERROR 42000: Not unique table/alias: 'C'
 
81
drop table t1, t2;
 
82
create table t1 (a int);
 
83
create table t2 like T1;
 
84
drop table t1, t2;
 
85
show tables;
 
86
Tables_in_test
 
87
set names utf8;
 
88
drop table if exists İ,İİ;
 
89
create table İ (s1 int);
 
90
show create table İ;
 
91
Table   Create Table
 
92
İ       CREATE TABLE `i` (
 
93
  `s1` int(11) DEFAULT NULL
 
94
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
95
show tables;
 
96
Tables_in_test
 
97
i
 
98
drop table İ;
 
99
create table İİ (s1 int);
 
100
show create table İİ;
 
101
Table   Create Table
 
102
İİ      CREATE TABLE `ii` (
 
103
  `s1` int(11) DEFAULT NULL
 
104
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
105
show tables;
 
106
Tables_in_test
 
107
ii
 
108
drop table İİ;
 
109
set names latin1;
 
110
End of 5.0 tests