~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/order_by.test

  • Committer: Brian Aker
  • Date: 2010-12-07 09:12:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1985.
  • Revision ID: brian@tangent.org-20101207091212-1m0w20tck6z7632m
This is a fix for bug lp:686197

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
  KEY component_id (cid)
286
286
) ENGINE=MyISAM;
287
287
INSERT INTO t1 VALUES (103853,108),(103867,108),(103962,108),(104505,108),(104619,108),(104620,108);
288
 
ALTER TABLE t1 add skr int not null;
 
288
ALTER TABLE t1 add skr int default 42 not null;
289
289
 
290
290
CREATE TEMPORARY TABLE t2 (
291
291
  gid int NOT NULL default '0',
302
302
  PRIMARY KEY  (uid)
303
303
) ENGINE=MyISAM;
304
304
INSERT INTO t3 VALUES (1),(15),(27),(75),(117),(250);
305
 
ALTER TABLE t3 add skr int not null;
 
305
ALTER TABLE t3 add skr int default 42 not null;
306
306
 
307
307
select t1.gid, t2.sid, t3.uid from t2, t1, t3 where t2.gid = t1.gid and t2.uid = t3.uid order by t3.uid, t1.gid;
308
308
select t1.gid, t2.sid, t3.uid from t3, t2, t1 where t2.gid = t1.gid and t2.uid = t3.uid order by t3.uid, t1.gid;