~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/alias.test

Merge Stewart's dead code removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
#
189
189
 
190
190
#Bug: ap309865 These fail in drizzle: "drizzletest: Result content mismatch"
191
 
select t1.* from t1;
192
 
select t2.* from t2;
193
 
select t1.*, t1.* from t1;
194
 
select t1.*, a, t1.* from t1;
 
191
# select t1.* from t1;
 
192
# select t2.* from t2;
 
193
# select t1.*, t1.* from t1;
 
194
# select t1.*, a, t1.* from t1;
195
195
 
196
196
# other fields without alias
197
197
#Bug: ap309865 These fail in drizzle: "drizzletest: Result content mismatch"
198
 
select a, t1.* from t1;
199
 
select t1.*, a from t1;
200
 
select a, t1.*, b from t1;
201
 
select (select d from t2 where d > a), t1.* from t1;
202
 
select t1.*, (select a from t2 where d > a) from t1;
 
198
# select a, t1.* from t1;
 
199
#select t1.*, a from t1;
 
200
#select a, t1.*, b from t1;
 
201
#select (select d from t2 where d > a), t1.* from t1;
 
202
#select t1.*, (select a from t2 where d > a) from t1;
203
203
 
204
204
# other fields with alias
205
205
#Bug: ap309865 These fail in drizzle: "drizzletest: Result content mismatch"
206
 
select a as 'x', t1.* from t1;
207
 
select t1.*, a as 'x' from t1;
208
 
select a as 'x', t1.*, b as 'x' from t1;
209
 
select (select d from t2 where d > a) as 'x', t1.* from t1;
210
 
select t1.*, (select a from t2 where d > a) as 'x' from t1;
 
206
#select a as 'x', t1.* from t1;
 
207
#select t1.*, a as 'x' from t1;
 
208
#select a as 'x', t1.*, b as 'x' from t1;
 
209
#select (select d from t2 where d > a) as 'x', t1.* from t1;
 
210
#select t1.*, (select a from t2 where d > a) as 'x' from t1;
211
211
 
212
212
# some more subquery
213
213
#Bug: ap309865 These fail in drizzle: "drizzletest: Result content mismatch"
214
 
select (select t2.* from t2) from t1;
215
 
select a, (select t2.* from t2) from t1;
216
 
select t1.*, (select t2.* from t2) from t1;
 
214
#select (select t2.* from t2) from t1;
 
215
#select a, (select t2.* from t2) from t1;
 
216
#select t1.*, (select t2.* from t2) from t1;
217
217
 
218
218
# insert
219
219
#Bug: ap309865 These fail in drizzle: "drizzletest: Result content mismatch"
220
 
insert into t3 select t1.* from t1;
221
 
insert into t3 select t2.*, 1, 2 from t2;
222
 
insert into t3 select t2.*, d as 'x', d as 'z' from t2;
223
 
insert into t3 select t2.*, t2.*, 3 from t2;
 
220
#insert into t3 select t1.* from t1;
 
221
#insert into t3 select t2.*, 1, 2 from t2;
 
222
#insert into t3.* select t2, d as 'x', d as 'z' from t2;
 
223
#insert into t3 select t2.*, t2.*, 3 from t2;
224
224
 
225
225
# create
226
226
#Bug: ap309865 These fail in drizzle: "drizzletest: Result content mismatch"
227
 
create table t4 select t1.* from t1;
228
 
drop table t4;
229
 
create table t4 select t2.*, 1, 2 from t2;
230
 
drop table t4;
231
 
create table t4 select t2.*, d as 'x', d as 'z' from t2;
232
 
drop table t4;
 
227
#create table t4 select t1.* from t1;
 
228
#drop table t4;
 
229
#create table t4 select t2.*, 1, 2 from t2;
 
230
#drop table t4;
 
231
#create table t4 select t2.*, d as 'x', d as 'z' from t2;
 
232
#drop table t4;
233
233
 
234
234
# end
235
235
drop table t1,t2,t3;