pt-query-digest doens't distill IF EXISTS correctly

Bug #821690 reported by Daniel Nichter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Low
Daniel Nichter
2.1
Won't Fix
Undecided
Unassigned
2.2
Fix Released
Low
Daniel Nichter

Bug Description

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

This mostly affect pt-query-digest. "DROP TABLE IF EXIST foo" distills incorrectly to "DROP TABLE IF".

Related branches

Revision history for this message
Brian Fraser (fraserbn) wrote :

This is obviously wrong, but it's not clear to me what the correct behavior ought to be. Should it distill to anything different than the original?

Changed in percona-toolkit:
status: New → Confirmed
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

it should distill to DROP foo

Changed in percona-toolkit:
milestone: none → 2.2.5
summary: - IF EXISTS doesn't distill correctly
+ pt-query-digest doens't distill IF EXISTS correctly
Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

Fix should handle all instances of "IF [NOT] EXISTS" in all DDL statements (DROP, CREATE, etc.).

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-745

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.