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:
parent
6315de18fd
commit
3732c07f13
@ -350,7 +350,11 @@ sub get_each {
|
|||||||
my $everything = 0;
|
my $everything = 0;
|
||||||
|
|
||||||
foreach my $expr (@opts) {
|
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') {
|
if ($key eq '_everything') {
|
||||||
$everything = 1;
|
$everything = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user