~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/r/lowercase_table2.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,t2aA,t1Aa;
 
2
DROP DATABASE IF EXISTS `TEST_$1`;
 
3
DROP DATABASE IF EXISTS `test_$1`;
 
4
DROP DATABASE IF EXISTS mysqltest_LC2;
 
5
CREATE TABLE T1 (a int);
 
6
INSERT INTO T1 VALUES (1);
 
7
SHOW TABLES LIKE "T1";
 
8
Tables_in_test (T1)
 
9
T1
 
10
SHOW TABLES LIKE "t1";
 
11
Tables_in_test (t1)
 
12
T1
 
13
SHOW CREATE TABLE T1;
 
14
Table   Create Table
 
15
T1      CREATE TABLE `T1` (
 
16
  `a` int(11) DEFAULT NULL
 
17
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
18
RENAME TABLE T1 TO T2;
 
19
SHOW TABLES LIKE "T2";
 
20
Tables_in_test (T2)
 
21
T2
 
22
SELECT * FROM t2;
 
23
a
 
24
1
 
25
RENAME TABLE T2 TO t3;
 
26
SHOW TABLES LIKE "T3";
 
27
Tables_in_test (T3)
 
28
t3
 
29
RENAME TABLE T3 TO T1;
 
30
SHOW TABLES LIKE "T1";
 
31
Tables_in_test (T1)
 
32
T1
 
33
ALTER TABLE T1 add b int;
 
34
SHOW TABLES LIKE "T1";
 
35
Tables_in_test (T1)
 
36
T1
 
37
ALTER TABLE T1 RENAME T2;
 
38
SHOW TABLES LIKE "T2";
 
39
Tables_in_test (T2)
 
40
T2
 
41
LOCK TABLE T2 WRITE;
 
42
ALTER TABLE T2 drop b;
 
43
SHOW TABLES LIKE "T2";
 
44
Tables_in_test (T2)
 
45
T2
 
46
UNLOCK TABLES;
 
47
RENAME TABLE T2 TO T1;
 
48
SHOW TABLES LIKE "T1";
 
49
Tables_in_test (T1)
 
50
T1
 
51
SELECT * from T1;
 
52
a
 
53
1
 
54
DROP TABLE T1;
 
55
CREATE DATABASE `TEST_$1`;
 
56
SHOW DATABASES LIKE "TEST%";
 
57
Database (TEST%)
 
58
TEST_$1
 
59
DROP DATABASE `test_$1`;
 
60
CREATE TABLE T1 (a int) engine=innodb;
 
61
INSERT INTO T1 VALUES (1);
 
62
SHOW TABLES LIKE "T1";
 
63
Tables_in_test (T1)
 
64
T1
 
65
SHOW TABLES LIKE "t1";
 
66
Tables_in_test (t1)
 
67
T1
 
68
SHOW CREATE TABLE T1;
 
69
Table   Create Table
 
70
T1      CREATE TABLE `T1` (
 
71
  `a` int(11) DEFAULT NULL
 
72
) ENGINE=InnoDB DEFAULT CHARSET=latin1
 
73
RENAME TABLE T1 TO T2;
 
74
SHOW TABLES LIKE "T2";
 
75
Tables_in_test (T2)
 
76
T2
 
77
SELECT * FROM t2;
 
78
a
 
79
1
 
80
RENAME TABLE T2 TO t3;
 
81
SHOW TABLES LIKE "T3";
 
82
Tables_in_test (T3)
 
83
t3
 
84
RENAME TABLE T3 TO T1;
 
85
SHOW TABLES LIKE "T1";
 
86
Tables_in_test (T1)
 
87
T1
 
88
ALTER TABLE T1 add b int;
 
89
SHOW TABLES LIKE "T1";
 
90
Tables_in_test (T1)
 
91
T1
 
92
ALTER TABLE T1 RENAME T2;
 
93
SHOW TABLES LIKE "T2";
 
94
Tables_in_test (T2)
 
95
T2
 
96
LOCK TABLE T2 WRITE;
 
97
ALTER TABLE T2 drop b;
 
98
SHOW TABLES LIKE "T2";
 
99
Tables_in_test (T2)
 
100
T2
 
101
UNLOCK TABLES;
 
102
RENAME TABLE T2 TO T1;
 
103
SHOW TABLES LIKE "T1";
 
104
Tables_in_test (T1)
 
105
T1
 
106
SELECT * from T1;
 
107
a
 
108
1
 
109
DROP TABLE T1;
 
110
create table T1 (EVENT_ID int auto_increment primary key,  LOCATION char(20));
 
111
insert into T1 values (NULL,"Mic-4"),(NULL,"Mic-5"),(NULL,"Mic-6");
 
112
SELECT LOCATION FROM T1 WHERE EVENT_ID=2 UNION ALL  SELECT LOCATION FROM T1 WHERE EVENT_ID=3;
 
113
LOCATION
 
114
Mic-5
 
115
Mic-6
 
116
SELECT LOCATION FROM T1 WHERE EVENT_ID=2 UNION ALL  SELECT LOCATION FROM T1 WHERE EVENT_ID=3;
 
117
LOCATION
 
118
Mic-5
 
119
Mic-6
 
120
SELECT LOCATION FROM T1 WHERE EVENT_ID=2 UNION ALL  SELECT LOCATION FROM T1 WHERE EVENT_ID=3;
 
121
LOCATION
 
122
Mic-5
 
123
Mic-6
 
124
drop table T1;
 
125
create table T1 (A int);
 
126
alter table T1 add index (A);
 
127
show tables like 'T1%';
 
128
Tables_in_test (T1%)
 
129
T1
 
130
alter table t1 add index (A);
 
131
show tables like 't1%';
 
132
Tables_in_test (t1%)
 
133
t1
 
134
drop table t1;
 
135
create temporary table T1(a int(11), b varchar(8));
 
136
insert into T1 values (1, 'abc');
 
137
select * from T1;
 
138
a       b
 
139
1       abc
 
140
alter table T1 add index (a);
 
141
select * from T1;
 
142
a       b
 
143
1       abc
 
144
drop table T1;
 
145
create database mysqltest_LC2;
 
146
use mysqltest_LC2;
 
147
create table myUC (i int);
 
148
insert into myUC values (1),(2),(3);
 
149
select * from myUC;
 
150
i
 
151
1
 
152
2
 
153
3
 
154
use test;
 
155
drop database mysqltest_LC2;
 
156
create database mysqltest_LC2;
 
157
use mysqltest_LC2;
 
158
create table myUC (i int);
 
159
select * from myUC;
 
160
i
 
161
use test;
 
162
drop database mysqltest_LC2;
 
163
create table t2aA (col1 int);
 
164
create table t1Aa (col1 int);
 
165
select t1Aa.col1 from t1aA,t2Aa where t1Aa.col1 = t2aA.col1;
 
166
col1
 
167
drop table t2aA, t1Aa;
 
168
create database mysqltest_LC2;
 
169
use mysqltest_LC2;
 
170
create table myUC (i int);
 
171
select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
 
172
where TABLE_SCHEMA ='mysqltest_LC2';
 
173
TABLE_SCHEMA    TABLE_NAME
 
174
mysqltest_LC2   myUC
 
175
use test;
 
176
drop database mysqltest_LC2;