~percona-toolkit-dev/percona-toolkit/mysql-5.6-test-fixes

« back to all changes in this revision

Viewing changes to t/pt-visual-explain/samples/range_check_3.sql

  • Committer: Daniel Nichter
  • Date: 2011-06-24 22:02:05 UTC
  • Revision ID: daniel@percona.com-20110624220205-e779cao9hcwyly1w
Add forked Maatkit tools in bin/ and their tests in t/.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
EXPLAIN
 
2
SELECT s.oxid FROM t1 v, t1 s 
 
3
WHERE s.oxrootid = 'd8c4177d09f8b11f5.52725521' AND
 
4
v.oxrootid ='d8c4177d09f8b11f5.52725521' AND
 
5
s.oxleft > v.oxleft AND s.oxleft < v.oxright;
 
6
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
7
1       SIMPLE  v       ref     OXLEFT,OXRIGHT,OXROOTID OXROOTID        32      const   5       Using where
 
8
1       SIMPLE  s       ALL     OXLEFT  NULL    NULL    NULL    5       Range checked for each record (index map: 4)