~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap.test

  • Committer: Monty Taylor
  • Date: 2009-02-05 21:07:57 UTC
  • mto: This revision was merged to the branch mainline in revision 840.
  • Revision ID: mordred@inaugust.com-20090205210757-6487lf69y3mndcds
Fixed warnings badness in csv_alter_table test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
select * from t1 where a=1;
66
66
drop table t1;
67
67
 
68
 
create table t1 (id int unsigned not null, primary key (id)) engine=HEAP;
 
68
create table t1 (id int not null, primary key (id)) engine=HEAP;
69
69
insert into t1 values(1);
70
70
select max(id) from t1; 
71
71
insert into t1 values(2);
155
155
# Bug#4411 Server hangs when trying to SELECT MAX(id) from an empty HEAP table
156
156
#
157
157
CREATE TABLE `job_titles` (
158
 
  `job_title_id` int unsigned NOT NULL default '0',
 
158
  `job_title_id` int NOT NULL default '0',
159
159
  `job_title` char(18) NOT NULL default '',
160
160
  PRIMARY KEY  (`job_title_id`),
161
161
  UNIQUE KEY `job_title_id` (`job_title_id`,`job_title`)
179
179
# Bug #6748
180
180
# heap_rfirst() doesn't work (and never did!)
181
181
#
182
 
CREATE TABLE t1 (pseudo char(35) PRIMARY KEY, date int unsigned NOT NULL) ENGINE=HEAP;
 
182
CREATE TABLE t1 (pseudo char(35) PRIMARY KEY, date int NOT NULL) ENGINE=HEAP;
183
183
INSERT INTO t1 VALUES ('massecot',1101106491),('altec',1101106492),('stitch+',1101106304),('Seb Corgan',1101106305),('beerfilou',1101106263),('flaker',1101106529),('joce8',5),('M4vrick',1101106418),('gabay008',1101106525),('Vamp irX',1101106291),('ZoomZip',1101106546),('rip666',1101106502),('CBP ',1101106397),('guezpard',1101106496);
184
184
DELETE FROM t1 WHERE date<1101106546;
185
185
SELECT * FROM t1;
284
284
select sql_big_result trim(v),count(c) from t1 group by v limit 10;
285
285
select c,count(*) from t1 group by c limit 10;
286
286
select c,count(t) from t1 group by c limit 10;
287
 
select sql_big_result c,count(t) from t1 group by c limit 10;
288
287
select t,count(*) from t1 group by t limit 10;
289
288
select t,count(t) from t1 group by t limit 10;
290
289
select sql_big_result trim(t),count(t) from t1 group by t limit 10;
396
395
show create table t1;
397
396
drop table t1;
398
397
 
399
 
create table t1 (v varchar(65530), key(v(10)));
 
398
create table t1 (v varchar(16383), key(v(10)));
400
399
show create table t1;
401
 
insert into t1 values(repeat('a',65530));
402
 
select length(v) from t1 where v=repeat('a',65530);
 
400
insert into t1 values(repeat('a',16383));
 
401
select length(v) from t1 where v=repeat('a',16383);
403
402
drop table t1;
404
403
 
405
404
#
411
410
# Bug #8489: Strange auto_increment behaviour
412
411
#
413
412
 
414
 
create table t1 (a bigint unsigned auto_increment primary key, b int,
 
413
create table t1 (a bigint auto_increment primary key, b int,
415
414
  key (b, a)) engine=heap;
416
415
insert t1 (b) values (1),(1),(1),(1),(1),(1),(1),(1);
417
416
select * from t1;
454
453
#
455
454
create table t1 (c char(10)) engine=memory;
456
455
create table t2 (c varchar(10)) engine=memory;
457
 
--replace_column 8 #
 
456
--replace_column 3 # 8 #
458
457
show table status like 't_';
459
458
drop table t1, t2;
460
459