FIXED operand error for NOT IN SQL statement

Switched operand from !~ to ~[] for NOT IN SQL statement.
Web version was fine but zmfilter.pl suffered from this error.
This commit is contained in:
Peter Vilhan 2020-10-06 11:52:39 +02:00
parent 87fd316e5b
commit 69d393fc47
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;