~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/heap_btree.result

  • Committer: Paul McCullagh
  • Date: 2010-09-16 15:26:41 UTC
  • mto: (1771.3.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1785.
  • Revision ID: paul.mccullagh@primebase.org-20100916152641-9mwb1hga0qwz41nu
Merged with 1.1 trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
2       2
25
25
3       3
26
26
4       6
27
 
alter table t1 add c int DEFAULT 42 not null, add key using BTREE (c,a);
 
27
alter table t1 add c int not null, add key using BTREE (c,a);
28
28
drop table t1;
29
29
create temporary table t1 (a int not null,b int not null, primary key using BTREE (a)) engine=MEMORY comment="testing heaps";
30
30
insert into t1 values(-2,-2),(-1,-1),(0,0),(1,1),(2,2),(3,3),(4,4);
189
189
btn
190
190
select * from t1 where btn like "q%";
191
191
btn
192
 
alter table t1 add column new_col char(1) DEFAULT "Y" not null, add key using BTREE (btn,new_col), drop key btn;
 
192
alter table t1 add column new_col char(1) not null, add key using BTREE (btn,new_col), drop key btn;
193
193
update t1 set new_col=left(btn,1);
194
194
explain select * from t1 where btn="a";
195
195
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra