~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/subselect3.test

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
 
226
226
# Then check that we do turn off 'ref' scans in the subquery
227
227
create table t4 (x int);
228
 
insert into t4 select A.a + 10*B.a from t1 A, t1 B;
 
228
insert into t4 select A.a + 10*B.a from t1 A CROSS JOIN t1 B;
229
229
explain extended 
230
230
  select a,b, oref, 
231
231
         (a,b) in (select a,b from t1,t4 where c=t2.oref) Z 
618
618
 
619
619
create table t1 (a int, b decimal(13, 3)); 
620
620
insert into t1 values (1, 0.123);
 
621
system rm -f $DRIZZLETEST_VARDIR/subselect.out.file.1;
621
622
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
622
623
eval select a, (select max(b) from t1) into outfile "$DRIZZLETEST_VARDIR/subselect.out.file.1" from t1;
623
624
delete from t1;