mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 17:04:00 +00:00
Test case and fix: remove multi-line comments before -- one line comments.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user