pt-query-digest won't distill LOCK TABLES in lowercase

Bug #1037211 reported by Baron Schwartz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Medium
Brian Fraser

Bug Description

This code snippet makes 'lock tables foo f write, bar b read' fail to distill because it's lowercase:

 7674 if ( $query =~ /^\s*LOCK TABLES/i ) {
 7675 PTDEBUG && _d('Special table type: LOCK TABLES');
 7676 $query =~ s/^(\s*LOCK TABLES\s+)//;
 7677 $query =~ s/\s+(?:READ|WRITE|LOCAL)+\s*//g;
 7678 PTDEBUG && _d('Locked tables:', $query);
 7679 $query = "FROM $query";
 7680 }

The problem is the lack of /i on lines 7676 and 7677.

Related branches

Changed in percona-toolkit:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 2.1.4
tags: added: case-sensitivity distill pt-query-digest
Brian Fraser (fraserbn)
Changed in percona-toolkit:
assignee: nobody → Brian Fraser (fraserbn)
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: Confirmed → In Progress
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: In Progress → Fix Committed
Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: Fix Committed → Fix Released
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-568

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.