Fix "xxx does not contains yyy AND (...)" not matching NULL values

beta
Vitaliy Filippov 2018-10-01 16:53:17 +03:00
parent 06fc8350ac
commit 4212177a2d
1 changed files with 1 additions and 1 deletions

View File

@ -3446,7 +3446,7 @@ sub negate_expression
if (ref $q eq 'HASH')
{
$q->{neg} = !$q->{neg};
$q->{allow_null} = ($q->{allow_null} || 0) == 1 ? 0 : $q->{allow_null};
$q->{allow_null} = ($q->{allow_null} || 0) == 1 ? 0 : 1;
$q->{description}->[1] = NEGATE_ALL_OPERATORS->{$q->{description}->[1]} || $q->{description}->[1];
}
elsif (!ref $q)