~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/alias.result

  • Committer: Brian Aker
  • Date: 2009-11-13 18:26:52 UTC
  • mfrom: (1211.2.1 bug309865)
  • Revision ID: brian@gaz-20091113182652-228j8p2u57rqxamn
Merge Stewart (test re-enable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'as 'with_alias', d as 'x', d as 'z' from t2' at line 1
135
135
create table t3 select t2.*, t2.* as 'with_alias', 3 from t2;
136
136
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'as 'with_alias', 3 from t2' at line 1
 
137
select t1.* from t1;
 
138
a       b       c
 
139
1       2       3
 
140
11      22      33
 
141
select t2.* from t2;
 
142
d
 
143
99
 
144
select t1.*, t1.* from t1;
 
145
a       b       c       a       b       c
 
146
1       2       3       1       2       3
 
147
11      22      33      11      22      33
 
148
select t1.*, a, t1.* from t1;
 
149
a       b       c       a       a       b       c
 
150
1       2       3       1       1       2       3
 
151
11      22      33      11      11      22      33
 
152
select a, t1.* from t1;
 
153
a       a       b       c
 
154
1       1       2       3
 
155
11      11      22      33
 
156
select t1.*, a from t1;
 
157
a       b       c       a
 
158
1       2       3       1
 
159
11      22      33      11
 
160
select a, t1.*, b from t1;
 
161
a       a       b       c       b
 
162
1       1       2       3       2
 
163
11      11      22      33      22
 
164
select (select d from t2 where d > a), t1.* from t1;
 
165
(select d from t2 where d > a)  a       b       c
 
166
99      1       2       3
 
167
99      11      22      33
 
168
select t1.*, (select a from t2 where d > a) from t1;
 
169
a       b       c       (select a from t2 where d > a)
 
170
1       2       3       1
 
171
11      22      33      11
 
172
select a as 'x', t1.* from t1;
 
173
x       a       b       c
 
174
1       1       2       3
 
175
11      11      22      33
 
176
select t1.*, a as 'x' from t1;
 
177
a       b       c       x
 
178
1       2       3       1
 
179
11      22      33      11
 
180
select a as 'x', t1.*, b as 'x' from t1;
 
181
x       a       b       c       x
 
182
1       1       2       3       2
 
183
11      11      22      33      22
 
184
select (select d from t2 where d > a) as 'x', t1.* from t1;
 
185
x       a       b       c
 
186
99      1       2       3
 
187
99      11      22      33
 
188
select t1.*, (select a from t2 where d > a) as 'x' from t1;
 
189
a       b       c       x
 
190
1       2       3       1
 
191
11      22      33      11
 
192
select (select t2.* from t2) from t1;
 
193
(select t2.* from t2)
 
194
99
 
195
99
 
196
select a, (select t2.* from t2) from t1;
 
197
a       (select t2.* from t2)
 
198
1       99
 
199
11      99
 
200
select t1.*, (select t2.* from t2) from t1;
 
201
a       b       c       (select t2.* from t2)
 
202
1       2       3       99
 
203
11      22      33      99
 
204
insert into t3 select t1.* from t1;
 
205
insert into t3 select t2.*, 1, 2 from t2;
 
206
insert into t3 select t2.*, d as 'x', d as 'z' from t2;
 
207
insert into t3 select t2.*, t2.*, 3 from t2;
 
208
create table t4 select t1.* from t1;
 
209
drop table t4;
 
210
create table t4 select t2.*, 1, 2 from t2;
 
211
drop table t4;
 
212
create table t4 select t2.*, d as 'x', d as 'z' from t2;
 
213
drop table t4;
137
214
drop table t1,t2,t3;