mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 13:46:22 +00:00
Updated TableNibbler
This commit is contained in:
@@ -3220,7 +3220,7 @@ sub generate_cmp_where {
|
||||
push @clause, "($val IS NULL OR $quo $type $val)";
|
||||
}
|
||||
elsif ( $type =~ m/>/ ) {
|
||||
push @clause, "(($val IS NULL AND $quo IS NOT NULL) OR ($quo $cmp $val)";
|
||||
push @clause, "($val IS NULL AND $quo IS NOT NULL) OR ($quo $cmp $val)";
|
||||
}
|
||||
else { # If $type =~ m/</ ) {
|
||||
push @clauses, "(($val IS NOT NULL AND $quo IS NULL) OR ($quo $cmp $val))";
|
||||
@@ -3234,7 +3234,7 @@ sub generate_cmp_where {
|
||||
push @clause, ($type =~ m/=/ && $end ? "$quo $type $val" : "$quo $cmp $val");
|
||||
}
|
||||
|
||||
push @clauses, '(' . join(' AND ', @clause) . ')';
|
||||
push @clauses, '(' . join(' AND ', @clause) . ')' if @clause;
|
||||
}
|
||||
my $result = '(' . join(' OR ', @clauses) . ')';
|
||||
my $where = {
|
||||
|
Reference in New Issue
Block a user