~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/order_by.test

  • Committer: Brian Aker
  • Date: 2009-08-15 00:59:30 UTC
  • mfrom: (1115.1.7 merge)
  • Revision ID: brian@gaz-20090815005930-q47yenjrq1esiwsz
Merge of Trond + Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
  info text NOT NULL default '',
221
221
  ipnr varchar(30) NOT NULL default '',
222
222
  PRIMARY KEY  (member_id)
223
 
) ENGINE=MyISAM;
 
223
) ENGINE=MyISAM PACK_KEYS=1;
224
224
 
225
225
insert into t1 (member_id) values (1),(2),(3);
226
226
select member_id, nickname, voornaam FROM t1
340
340
  KEY `auteur` (`auteur`,`lu`),
341
341
  KEY `auteur_2` (`auteur`,`date`),
342
342
  KEY `dest_2` (`dest`,`date`)
343
 
);
 
343
) CHECKSUM=1;
344
344
 
345
345
CREATE TABLE t2 (
346
346
  `numeropost` int NOT NULL default '0',
451
451
insert into t1 select null, b, c, d from t2;
452
452
insert into t2 select null, b, c, d from t1;
453
453
insert into t1 select null, b, c, d from t2;
454
 
alter table t1 engine="default";
 
454
optimize table t1;
455
455
set @row=10;
456
456
insert into t1 select 1, b, c + (@row:=@row - 1) * 10, d - @row from t2 limit 10;
457
457
select * from t1 where a=1 and b in (1) order by c, b, a;