~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/subselect.test

  • Committer: Toru Maesaka
  • Date: 2008-12-17 07:16:37 UTC
  • mto: (685.1.40 devel) (713.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 713.
  • Revision ID: dev@torum.net-20081217071637-7j9040w7lpms77r2
Removed my_time() and added error checking

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
insert into t12 values (33, 10),(22, 11),(2, 12);
322
322
insert into t2 values (1, 21),(2, 12),(3, 23);
323
323
select * from t11;
 
324
--sorted_result
324
325
select * from t12;
325
326
-- error 1093
326
327
delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t12 where t11.a = t12.a);
328
329
delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2);
329
330
delete t11.*, t12.* from t11,t12 where t11.a = t12.a and t11.b = (select b from t2 where t11.a = t2.a);
330
331
select * from t11;
 
332
--sorted_result
331
333
select * from t12;
332
334
drop table t11, t12, t2;
333
335
 
380
382
select * from t1;
381
383
replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
382
384
-- sleep 1
 
385
--sorted_result
383
386
select * from t1;
384
387
replace DELAYED into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
385
388
-- sleep 1
386
389
select * from t1;
387
390
replace LOW_PRIORITY into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
 
391
--sorted_result
388
392
select * from t1;
389
393
drop table t1, t2, t3;
390
394
 
455
459
select 1.5 > ANY (SELECT * from t1);
456
460
select 10.5 > ANY (SELECT * from t1);
457
461
explain extended select (select a+1) from t1;
 
462
--sorted_result
458
463
select (select a+1) from t1;
459
464
drop table t1;
460
465