mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 03:19:07 +00:00
t/lib/SchemaIterator.t: Ignore commas at the end of statements
This commit is contained in:
@@ -131,7 +131,7 @@ sub sort_query_output {
|
||||
|
||||
my $sorted;
|
||||
for my $query (@queries) {
|
||||
$sorted .= join "\n", sort split /\n/, $query;
|
||||
$sorted .= join "\n", sort map { my $c = $_; $c =~ s/,$//; $c } split /\n/, $query;
|
||||
}
|
||||
return $sorted;
|
||||
}
|
||||
|
Reference in New Issue
Block a user