~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key_primary.result

  • Committer: Brian Aker
  • Date: 2008-08-19 17:29:21 UTC
  • Revision ID: brian@tangent.org-20080819172921-bc3kpgsrzsdv338l
Moved Field iterator out to its own definition.

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 14      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;