correctly digest queries with true false literals - issue 965553

This commit is contained in:
Frank Cizmich
2014-05-24 19:53:23 -03:00
parent 433e5db1f6
commit f4da4b12e7
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;