Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-746

LP #821695: pt-query-advisor parses text within comments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Daniel Nichter last update 13-03-2013 15:04:20

      Imported from http://code.google.com/p/maatkit/issues/detail?id=1250

      Quoting the original:

      While checking for rule 'STA.001', the tool seems to blindly scan the query for the pattern '!=', and reports it even if it appears in comments, thus incorrectly reporting that the query has a non standard operation.

      e.g. A STA.001 note is generated for the query:
      /* use <> instead of != */ SELECT a.col FROM table as a WHERE a.col2 = 20

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpjirasync lpjirasync (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: