~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/subselect_sj2.test

  • Committer: Lee Bieber
  • Date: 2009-10-20 20:39:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1191.
  • Revision ID: lbieber@dhcp-umpk18-111-94.sfbay.sun.com-20091020203901-wmeq850fgv7iiqff
Add test case for MySQL BUG #42742: crash in setup_sj_materialization, Copy_field::set
If a semi-join strategy covers certain [first_table; last_table] range in join order, do reset the sj_strategy member for all tables within the range, except the first one.  Failure to do so caused EXPLAIN/execution code to try applying two strategies at once which would cause all kinds of undesired effects. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
364
364
 
365
365
drop table t1, t2;
366
366
 
 
367
--echo #
 
368
--echo # MySQL BUG #42742: crash in setup_sj_materialization, Copy_field::set
 
369
--echo # 
 
370
create table t3 ( c1 date) engine=innodb;
 
371
insert into t3 values ('2009-10-22'),('2142-10-22');
 
372
create table t2 (c1 tinytext,c2 text,c6 timestamp) engine=innodb;
 
373
select * from t3;
 
374
explain select 1 from t2 where  c2 in (select 1 from t3, t2) and  c1 in (select convert(c6,char(1)) from t2); 
 
375
drop table t2, t3;
 
376
 
367
377
#
368
378
# Bug#33062: subquery in stored routine cause crash
369
379
#