~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/r/key_primary.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
create table t1 (t1 char(3) primary key);
 
3
insert into t1 values("ABC");
 
4
insert into t1 values("ABA");
 
5
insert into t1 values("AB%");
 
6
select * from t1 where t1="ABC";
 
7
t1
 
8
ABC
 
9
select * from t1 where t1="ABCD";
 
10
t1
 
11
select * from t1 where t1 like "a_\%";
 
12
t1
 
13
AB%
 
14
describe select * from t1 where t1="ABC";
 
15
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
16
1       SIMPLE  t1      const   PRIMARY PRIMARY 3       const   1       Using index
 
17
describe select * from t1 where t1="ABCD";
 
18
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
19
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    Impossible WHERE noticed after reading const tables
 
20
drop table t1;