~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/distinct.test

  • Committer: Brian Aker
  • Date: 2010-08-03 20:57:39 UTC
  • mfrom: (1680.6.4 rollup)
  • Revision ID: brian@gaz-20100803205739-7betgobkod41363k
Removes LOCK_system_variables_hash, one goto, drops internall new for std
new (so possible performance regression), fixes bug where Session was not
unlocked correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
      (1, 'Z001'),
236
236
      (2, 'R002');
237
237
 
238
 
--sorted_result
239
238
SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;
240
239
SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;
241
240
SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID ORDER BY dateentered DESC;
346
345
EXPLAIN SELECT DISTINCT a FROM t1;
347
346
EXPLAIN SELECT DISTINCT a,b FROM t1;
348
347
EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2;
349
 
--sorted_result
350
348
EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
351
349
  WHERE t1_1.a = t1_2.a;
352
350
EXPLAIN SELECT a FROM t1 GROUP BY a;