~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/order_by.result

  • 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:
250
250
1999-07-27      834
251
251
1999-07-27      840
252
252
drop table t1,t2,t3;
253
 
CREATE TABLE t1 (
 
253
CREATE TEMPORARY TABLE t1 (
254
254
member_id int NOT NULL auto_increment,
255
255
inschrijf_datum varchar(20) NOT NULL default '',
256
256
lastchange_datum varchar(20) NOT NULL default '',
432
432
1       1       b
433
433
1       1       b
434
434
drop table t1;
435
 
CREATE TABLE t1 (
 
435
CREATE TEMPORARY TABLE t1 (
436
436
gid int NOT NULL auto_increment,
437
437
cid int NOT NULL default '0',
438
438
PRIMARY KEY  (gid),
440
440
) ENGINE=MyISAM;
441
441
INSERT INTO t1 VALUES (103853,108),(103867,108),(103962,108),(104505,108),(104619,108),(104620,108);
442
442
ALTER TABLE t1 add skr int not null;
443
 
CREATE TABLE t2 (
 
443
CREATE TEMPORARY TABLE t2 (
444
444
gid int NOT NULL default '0',
445
445
uid int NOT NULL default '1',
446
446
sid int NOT NULL default '1',
449
449
KEY status_id (sid)
450
450
) ENGINE=MyISAM;
451
451
INSERT INTO t2 VALUES (103853,250,5),(103867,27,5),(103962,27,5),(104505,117,5),(104619,75,5),(104620,15,5);
452
 
CREATE TABLE t3 (
 
452
CREATE TEMPORARY TABLE t3 (
453
453
uid int NOT NULL auto_increment,
454
454
PRIMARY KEY  (uid)
455
455
) ENGINE=MyISAM;
1593
1593
SET @id=0;
1594
1594
UPDATE t1 SET a=0 ORDER BY (a=@id), b;
1595
1595
DROP TABLE t1;
1596
 
CREATE TABLE t1 (  id int NOT NULL default '0',  menu int NOT NULL default '0',  KEY id (id),  KEY menu (menu)) ENGINE=MyISAM;
 
1596
CREATE TEMPORARY TABLE t1 (  id int NOT NULL default '0',  menu int NOT NULL default '0',  KEY id (id),  KEY menu (menu)) ENGINE=MyISAM;
1597
1597
INSERT INTO t1 VALUES (11384, 2),(11392, 2);
1598
1598
SELECT id FROM t1 WHERE id <11984 AND menu =2 ORDER BY id DESC LIMIT 1 ;
1599
1599
id
1725
1725
xxxxxxxxxxxxxxxxxxxab
1726
1726
xxxxxxxxxxxxxxxxxxxaa
1727
1727
drop table t1;
1728
 
create table t1 (
 
1728
create temporary table t1 (
1729
1729
`sid` decimal(8,0) default null,
1730
1730
`wnid` varchar(11) not null default '',
1731
1731
key `wnid14` (`wnid`(4)),