~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/type_datetime.result

  • Committer: Brian Aker
  • Date: 2010-02-03 21:54:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1281.
  • Revision ID: brian@gaz-20100203215438-9ixkp214vio85mub
Fixing test cases/removed dead optimizer switches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
create table t2 (id int not null, cur_date date not null);
406
406
insert into t1 (id, cur_date) values (1, '2007-04-25 18:30:22');
407
407
insert into t2 (id, cur_date) values (1, '2007-04-25');
408
 
set @@optimizer_switch=no_semijoin;
409
 
explain extended
410
 
select * from t1
411
 
where id in (select id from t1 as x1 where (t1.cur_date is null));
412
 
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
413
 
1       PRIMARY t1      ALL     NULL    NULL    NULL    NULL    1       100.00  Using where
414
 
2       DEPENDENT SUBQUERY      NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    Impossible WHERE
415
 
Warnings:
416
 
Note    1276    Field or reference 'test.t1.cur_date' of SELECT #2 was resolved in SELECT #1
417
 
Note    1003    select `test`.`t1`.`id` AS `id`,`test`.`t1`.`cur_date` AS `cur_date` from `test`.`t1` where <in_optimizer>(`test`.`t1`.`id`,<exists>(select 1 AS `Not_used` from `test`.`t1` `x1` where 0))
418
 
select * from t1
419
 
where id in (select id from t1 as x1 where (t1.cur_date is null));
420
 
id      cur_date
421
408
explain extended
422
409
select * from t2
423
410
where id in (select id from t2 as x1 where (t2.cur_date is null));