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

« back to all changes in this revision

Viewing changes to t/pt-query-advisor/samples/joi-001-002-01.txt

  • 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
 
 
2
# Query ID 0x95718954DB8B7620 at byte 0
 
3
# NOTE COL.001 SELECT *.
 
4
# CRIT JOI.001 Mixing comma and ANSI joins.
 
5
# CRIT JOI.002 A table is joined twice.
 
6
SELECT * FROM   `wibble_chapter`
 
7
   INNER JOIN `wibble_series` AS `wibble_chapter__series`
 
8
   ON `wibble_chapter`.`series_id` = `wibble_chapter__series`.`id`,
 
9
   `wibble_series`,
 
10
   `auth_user`
 
11
   WHERE  ( `wibble_chapter`.`chapnum` = 63.0
 
12
      AND `wibble_chapter`.`status` = 1
 
13
      AND `wibble_chapter__series`.`title` = 'bibble' )
 
14
      AND `wibble_chapter`.`series_id` = `wibble_series`.`id`
 
15
      AND `wibble_series`.`poster_id` = `auth_user`.`id`
 
16
      ORDER  BY `wibble_chapter`.`create_time` DESC
 
17
      LIMIT  1
 
18
 
 
19
# Profile
 
20
# Query ID           NOTE WARN CRIT Item
 
21
# ================== ==== ==== ==== ==========================================
 
22
# 0x95718954DB8B7620    1    0    2 select * from `wibble_chapter` inner join `wibble_series` as `wibble_chapter__series` on `wibble_chapter`.`series_id` = `wibble_chapter__series`.`id`, `wibble_series`, `auth_user` where ( `wibble_chapter`.`chapnum` = ? and `wibble_chapter`.`status` = ? and `wibble_chapter__series`.`title` = ? ) and `wibble_chapter`.`series_id` = `wibble_series`.`id` and `wibble_series`.`poster_id` = `auth_user`.`id` order by `wibble_chapter`.`create_time` desc limit ?