~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/r/order_by.result

  • Committer: paul-mccullagh
  • Date: 2008-03-10 11:36:34 UTC
  • Revision ID: paul-mccullagh-417ebf175a9c8ee6e5b3777d9e2398e1fb197391
Implemented full durability

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
1       0       
402
402
explain select * from t1 where (a = 1 and b = 1 and c = 'b') or (a > 2) order by a desc;
403
403
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
404
 
1       SIMPLE  t1      index   a       a       20      NULL    11      Using where; Using index
 
404
1       SIMPLE  t1      range   a       a       20      NULL    7       Using where; Using index
405
405
select * from t1 where (a = 1 and b = 1 and c = 'b') or (a > 2) order by a desc;
406
406
a       b       c
407
407
1       1       b
408
408
1       1       b
409
409
explain select * from t1 where a < 2 and b <= 1 order by a desc, b desc;
410
410
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
411
 
1       SIMPLE  t1      range   a       a       4       NULL    1       Using where; Using index
 
411
1       SIMPLE  t1      range   a       a       4       NULL    6       Using where; Using index
412
412
select * from t1 where a < 2 and b <= 1 order by a desc, b desc;
413
413
a       b       c
414
414
1       1       b
432
432
1       1       
433
433
explain select * from t1 where a between 1 and 3 and b <= 1 order by a desc, b desc;
434
434
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
435
 
1       SIMPLE  t1      range   a       a       8       NULL    1       Using where; Using index
 
435
1       SIMPLE  t1      range   a       a       8       NULL    6       Using where; Using index
436
436
select * from t1 where a between 1 and 3 and b <= 1 order by a desc, b desc;
437
437
a       b       c
438
438
2       1       b
444
444
1       0       
445
445
explain select * from t1 where a between 0 and 1 order by a desc, b desc;
446
446
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
447
 
1       SIMPLE  t1      range   a       a       4       NULL    1       Using where; Using index
 
447
1       SIMPLE  t1      range   a       a       4       NULL    6       Using where; Using index
448
448
select * from t1 where a between 0 and 1 order by a desc, b desc;
449
449
a       b       c
450
450
1       3       b