~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/subselect_sj2.result

  • Committer: Brian Aker
  • Date: 2009-10-20 21:53:24 UTC
  • mfrom: (1183.3.1 trunk-nodebug)
  • Revision ID: brian@gaz-20091020215324-p9xeiss3rjfr977j
Adding test cases that came from SergP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
SELECT t2.CountryCode FROM t2 WHERE Population > 5000000);
344
344
Name
345
345
drop table t1, t2;
 
346
#
 
347
# MySQL BUG #42742: crash in setup_sj_materialization, Copy_field::set
 
348
 
349
create table t3 ( c1 date) engine=innodb;
 
350
insert into t3 values ('2009-10-22'),('2142-10-22');
 
351
create table t2 (c1 tinytext,c2 text,c6 timestamp) engine=innodb;
 
352
select * from t3;
 
353
c1
 
354
2009-10-22
 
355
2142-10-22
 
356
explain select 1 from t2 where  c2 in (select 1 from t3, t2) and  c1 in (select convert(c6,char(1)) from t2);
 
357
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
358
1       PRIMARY t2      ALL     NULL    NULL    NULL    NULL    1       Using where
 
359
3       SUBQUERY        t2      ALL     NULL    NULL    NULL    NULL    1       
 
360
2       SUBQUERY        t2      ALL     NULL    NULL    NULL    NULL    1       
 
361
2       SUBQUERY        t3      ALL     NULL    NULL    NULL    NULL    2       Using join buffer
 
362
drop table t2, t3;