~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/order_by.test

  • Committer: Brian Aker
  • Date: 2009-07-12 00:49:18 UTC
  • mfrom: (1063.9.51 brian-tmp-fix)
  • Revision ID: brian@gaz-20090712004918-chprmyj387ex6l8a
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
 
192
192
#bug reported by Wouter de Jong
193
193
 
194
 
CREATE TABLE t1 (
 
194
CREATE TEMPORARY TABLE t1 (
195
195
  member_id int NOT NULL auto_increment,
196
196
  inschrijf_datum varchar(20) NOT NULL default '',
197
197
  lastchange_datum varchar(20) NOT NULL default '',
278
278
drop table t1;
279
279
 
280
280
 
281
 
CREATE TABLE t1 (
 
281
CREATE TEMPORARY TABLE t1 (
282
282
  gid int NOT NULL auto_increment,
283
283
  cid int NOT NULL default '0',
284
284
  PRIMARY KEY  (gid),
287
287
INSERT INTO t1 VALUES (103853,108),(103867,108),(103962,108),(104505,108),(104619,108),(104620,108);
288
288
ALTER TABLE t1 add skr int not null;
289
289
 
290
 
CREATE TABLE t2 (
 
290
CREATE TEMPORARY TABLE t2 (
291
291
  gid int NOT NULL default '0',
292
292
  uid int NOT NULL default '1',
293
293
  sid int NOT NULL default '1',
297
297
) ENGINE=MyISAM;
298
298
INSERT INTO t2 VALUES (103853,250,5),(103867,27,5),(103962,27,5),(104505,117,5),(104619,75,5),(104620,15,5);
299
299
 
300
 
CREATE TABLE t3 (
 
300
CREATE TEMPORARY TABLE t3 (
301
301
  uid int NOT NULL auto_increment,
302
302
  PRIMARY KEY  (uid)
303
303
) ENGINE=MyISAM;
416
416
# Bug when doing an order by on a 1 byte string (Bug #2147)
417
417
#
418
418
 
419
 
CREATE TABLE t1 (  id int NOT NULL default '0',  menu int NOT NULL default '0',  KEY id (id),  KEY menu (menu)) ENGINE=MyISAM;
 
419
CREATE TEMPORARY TABLE t1 (  id int NOT NULL default '0',  menu int NOT NULL default '0',  KEY id (id),  KEY menu (menu)) ENGINE=MyISAM;
420
420
INSERT INTO t1 VALUES (11384, 2),(11392, 2);
421
421
SELECT id FROM t1 WHERE id <11984 AND menu =2 ORDER BY id DESC LIMIT 1 ;
422
422
drop table t1;
517
517
# Bug #7331
518
518
#
519
519
 
520
 
create table t1 (
 
520
create temporary table t1 (
521
521
  `sid` decimal(8,0) default null,
522
522
  `wnid` varchar(11) not null default '',
523
523
  key `wnid14` (`wnid`(4)),