~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/embedded_innodb/tests/r/index_null.result

  • Committer: Brian Aker
  • Date: 2010-04-16 18:34:36 UTC
  • mfrom: (1283.28.40)
  • Revision ID: brian@gaz-20100416183436-e1rr7divbn4rvghi
Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
create table t1 (a int primary key, b int, index bindex(b));
 
2
insert into t1 values (1,2),(2,2),(3,NULL),(4,NULL);
 
3
explain select * from t1 force index (bindex) where b is NULL;
 
4
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
5
1       SIMPLE  t1      ref     bindex  bindex  5       const   10      Using where
 
6
select * from t1 force index (bindex) where b is NULL;
 
7
a       b
 
8
3       NULL
 
9
4       NULL
 
10
drop table t1;