~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/distinct.result

  • Committer: lbieber
  • Date: 2010-08-23 22:45:16 UTC
  • mfrom: (1727.2.1 staging)
  • Revision ID: lbieber@orisndriz03-20100823224516-k12j5r4znqnznr9d
Merge Vijay - bug 621866 - Changed --transaction-log.sync-method to --transaction-log.flush-frequency
Merge Lee - bug 622005 updateing test results that need to sorted by adding --sorted_result - 
Merge Andrew - bug #617537 re-connect connectionID is wrong 
Merge Andrew - bug #617534 incorrect error when reconnecting

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
SELECT DISTINCTROW email, shipcode FROM t1, t2 WHERE t1.infoID=t2.infoID;
398
398
email   shipcode
399
399
test1@testdomain.com    Z001
 
400
test2@testdomain.com    R002
400
401
test2@testdomain.com    Z001
401
 
test2@testdomain.com    R002
402
402
test3@testdomain.com    Z001
403
403
SELECT DISTINCTROW email FROM t1 ORDER BY dateentered DESC;
404
404
email
529
529
EXPLAIN SELECT DISTINCT t1_1.a, t1_1.b FROM t1 t1_1, t1 t1_2
530
530
WHERE t1_1.a = t1_2.a;
531
531
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
532
1       SIMPLE  t1_1    ALL     PRIMARY NULL    NULL    NULL    3       Using where; Using join buffer
532
533
1       SIMPLE  t1_2    index   PRIMARY PRIMARY 4       NULL    3       Using index; Using temporary
533
 
1       SIMPLE  t1_1    ALL     PRIMARY NULL    NULL    NULL    3       Using where; Using join buffer
534
534
EXPLAIN SELECT a FROM t1 GROUP BY a;
535
535
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
536
536
1       SIMPLE  t1      index   NULL    PRIMARY 4       NULL    3       Using index