~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/index_merge_innodb.result

  • Committer: Brian Aker
  • Date: 2009-01-07 00:04:25 UTC
  • Revision ID: brian@tangent.org-20090107000425-67n3f86rw6k423xe
Fixed index_merge_innodb test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
2       198
29
29
3       197
30
30
4       196
31
 
alter table t1 add str1 char (255) not null,
 
31
alter table t1 add str1 char (100) not null,
32
32
add zeroval int not null default 0,
33
 
add str2 char (255) not null,
34
 
add str3 char (255) not null;
 
33
add str2 char (100) not null,
 
34
add str3 char (100) not null;
35
35
update t1 set str1='aaa', str2='bbb', str3=concat(key2, '-', key1 div 2, '_' ,if(key1 mod 2 = 0, 'a', 'A'));
36
36
alter table t1 add primary key (str1, zeroval, str2, str3);
37
37
explain select * from t1 where key1 < 5 or key2 > 197;
111
111
explain select count(*) from t1 where
112
112
key1a = 2 and key1b is null and  key2a = 2 and key2b is null;
113
113
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
114
 
1       SIMPLE  t1      index_merge     i1,i2   i1,i2   10,10   NULL    4       Using intersect(i1,i2); Using where; Using index
 
114
1       SIMPLE  t1      index_merge     i1,i2   i1,i2   10,10   NULL    3       Using intersect(i1,i2); Using where; Using index
115
115
select count(*) from t1 where
116
116
key1a = 2 and key1b is null and key2a = 2 and key2b is null;
117
117
count(*)
119
119
explain select count(*) from t1 where
120
120
key1a = 2 and key1b is null and key3a = 2 and key3b is null;
121
121
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
122
 
1       SIMPLE  t1      index_merge     i1,i3   i1,i3   10,10   NULL    4       Using intersect(i1,i3); Using where; Using index
 
122
1       SIMPLE  t1      index_merge     i1,i3   i1,i3   10,10   NULL    3       Using intersect(i1,i3); Using where; Using index
123
123
select count(*) from t1 where
124
124
key1a = 2 and key1b is null and key3a = 2 and key3b is null;
125
125
count(*)
423
423
ETEXT varchar(80),
424
424
ETEXT_TYPE char(1),
425
425
INFO char(1),
426
 
SEVERITY tinyint(3),
 
426
SEVERITY int,
427
427
TADIRFLAG char(1),
428
428
PRIMARY KEY  (RUNID,SUBMITNR,ORDERNR,PROGRAMM,TESTID,UCCHECK),
429
429
KEY `TVERM~KEY`  (PROGRAMM,TESTID,UCCHECK)
430
 
) DEFAULT CHARSET=latin1;
 
430
);
431
431
update t1 set `ETEXT` = '', `ETEXT_TYPE`='', `INFO`='', `SEVERITY`='', `TADIRFLAG`=''
432
432
WHERE
433
433
`RUNID`= '' AND `SUBMITNR`= '' AND `ORDERNR`='' AND `PROGRAMM`='' AND