Merge pt-query-digest-does-not-fingerprint-true-false-literals-correctly-965553.

This commit is contained in:
Daniel Nichter
2014-05-28 10:03:30 -07:00
7 changed files with 89 additions and 17 deletions

View File

@@ -177,6 +177,8 @@ sub fingerprint {
$query =~ s/".*?"/?/sg; # quoted strings
$query =~ s/'.*?'/?/sg; # quoted strings
$query =~ s/\bfalse\b|\btrue\b/?/isg; # boolean values
# MD5 checksums which are always 32 hex chars
if ( $self->{match_md5_checksums} ) {
$query =~ s/([._-])[a-f0-9]{32}/$1?/g;