~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap_btree.test

  • Committer: Monty Taylor
  • Date: 2010-03-11 18:27:20 UTC
  • mfrom: (1333 staging)
  • mto: This revision was merged to the branch mainline in revision 1348.
  • Revision ID: mordred@inaugust.com-20100311182720-hd1h87y6cb1b1mp0
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
create temporary table t1 (a int not null,b int not null, primary key using BTREE (a)) engine=MEMORY comment="testing heaps";
10
10
insert into t1 values(1,1),(2,2),(3,3),(4,4);
11
11
delete from t1 where a=1 or a=0;
12
 
#show table status like "t1";
 
12
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
13
show table status like "t1";
13
14
show keys from t1;
14
15
select * from t1;
15
16
select * from t1 where a=4;
29
30
create temporary table t1 (a int not null,b int not null, primary key using BTREE (a)) engine=MEMORY comment="testing heaps";
30
31
insert into t1 values(1,1),(2,2),(3,3),(4,4);
31
32
alter table t1 modify a int not null auto_increment, engine=innodb, comment="new innodb table";
32
 
#show table status like "t1";
 
33
--replace_column 1 #  6 # 7 # 8 # 9 # 10 #
 
34
show table status like "t1";
33
35
select * from t1;
34
36
drop table t1;
35
37
 
223
225
#
224
226
# BUG#18160 - Memory-/MEMORY Table endless growing indexes
225
227
#
226
 
CREATE TEMPORARY TABLE t1(val INT, KEY USING BTREE(val)) ENGINE=memory;
227
 
INSERT INTO t1 VALUES(0);
228
 
--replace_result 37 21
229
 
SELECT INDEX_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='t1';
230
 
UPDATE t1 SET val=1;
231
 
--replace_result 37 21
232
 
SELECT INDEX_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='t1';
233
 
DROP TABLE t1;
 
228
#CREATE TEMPORARY TABLE t1(val INT, KEY USING BTREE(val)) ENGINE=memory;
 
229
#INSERT INTO t1 VALUES(0);
 
230
#--replace_result 37 21
 
231
#SELECT INDEX_LENGTH FROM data_dictionary.tables WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='t1';
 
232
#UPDATE t1 SET val=1;
 
233
#--replace_result 37 21
 
234
#SELECT INDEX_LENGTH FROM data_dictionary.tables WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME='t1';
 
235
#DROP TABLE t1;
234
236
 
235
237
#
236
238
# BUG#12873 - BTREE index on MEMORY table with multiple NULL values doesn't