Test case and fix: remove multi-line comments before -- one line comments.

This commit is contained in:
Daniel Nichter
2013-06-27 11:53:06 -07:00
parent 194ca2462c
commit dfcfdd292a
2 changed files with 13 additions and 4 deletions

View File

@@ -166,9 +166,9 @@ sub fingerprint {
if ( my ($beginning) = $query =~ m/\A((?:INSERT|REPLACE)(?: IGNORE)?\s+INTO.+?VALUES\s*\(.*?\))\s*,\s*\(/is ) {
$query = $beginning; # Shorten multi-value INSERT statements ASAP
}
$query =~ s/$olc_re//go;
$query =~ s/$mlc_re//go;
$query =~ s/$olc_re//go;
$query =~ s/\Ause \S+\Z/use ?/i # Abstract the DB in USE
&& return $query;