3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

DualIndexSQLiteObject: get_each: fix SQL expression

This commit is contained in:
Pragmatic Software 2021-05-31 03:16:48 -07:00
parent 6315de18fd
commit 3732c07f13

View File

@ -350,7 +350,11 @@ sub get_each {
my $everything = 0;
foreach my $expr (@opts) {
my ($key, $op, $value) = split /\s+/, $expr, 3;
my ($key, $op, $value) = $expr =~ /(.*?)\s+([!=<>]+)\s+(.*)/;
if (not defined $key) {
$key = $expr;
}
if ($key eq '_everything') {
$everything = 1;