~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/subselect.test

  • Committer: Brian Aker
  • Date: 2010-03-11 16:24:31 UTC
  • mfrom: (1317.6.2 reduce-sleep-time)
  • Revision ID: brian@gaz-20100311162431-zo5wbdsyt3mfmcad
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
select * from t1;
335
335
insert into t2 values (1);
336
336
INSERT INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
337
337
select * from t1;
338
338
INSERT INTO t1 (x) select (SELECT SUM(a)+1 FROM t2) FROM t2;
339
339
select * from t1;
344
343
-- error 1054
345
344
INSERT INTO t1 (x) VALUES ((SELECT SUM(x) FROM t2));
346
345
INSERT INTO t1 (x) VALUES ((SELECT SUM(a) FROM t2));
347
346
select * from t1;
348
347
--echo #
349
348
--echo #TODO: should be uncommented after bug 380 fix pushed
368
366
replace into t1 (x, y) VALUES ((SELECT a FROM t2), (SELECT a+2 FROM t2));
369
367
select * from t1;
370
368
replace into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a FROM t2));
371
369
--sorted_result
372
370
select * from t1;
373
371
replace into t1 (x, y) VALUES ((SELECT a+3 FROM t2), (SELECT a+1 FROM t2));
374
372
select * from t1;
375
373
replace into t1 (x, y) VALUES ((SELECT a+1 FROM t2), (SELECT a FROM t2));
376
374
--sorted_result