Merge pull request #3054 from PVi1/master

FIXED operand error for NOT IN SQL statement
This commit is contained in:
Isaac Connor 2020-10-06 09:30:04 -04:00 committed by GitHub
commit 90764ed62f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ sub Sql {
$self->{Sql} .= ' IS NOT '.$value;
} elsif ( $term->{op} eq '=[]' ) {
$self->{Sql} .= ' IN ('.join(',', @value_list).')';
} elsif ( $term->{op} eq '!~' ) {
} elsif ( $term->{op} eq '![]' ) {
$self->{Sql} .= ' NOT IN ('.join(',', @value_list).')';
} elsif ( $term->{op} eq 'LIKE' ) {
$self->{Sql} .= ' LIKE '.$value;