~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/embedded_innodb/tests/r/index_varchar.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 varchar(100) unique);
 
2
insert into t1 values (2,"Beaker"),(3,"Cricket"), (1,"Shirty");
 
3
EXPLAIN SELECT * FROM t1;
 
4
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
5
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    2       
 
6
SELECT * FROM t1;
 
7
a       b
 
8
1       Shirty
 
9
2       Beaker
 
10
3       Cricket
 
11
EXPLAIN SELECT a FROM t1 FORCE INDEX (PRIMARY) WHERE b="Beaker";
 
12
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
13
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    2       Using where
 
14
SELECT a FROM t1 FORCE INDEX (PRIMARY) WHERE b="Beaker";
 
15
a
 
16
2
 
17
drop table t1;