need to normalize op to avoid spurious use of old unary ops
Matt S Trout [Tue, 11 Sep 2018 22:07:46 +0000 (22:07 +0000)]
lib/SQL/Abstract.pm

index 216d64d..66e0af0 100644 (file)
@@ -640,6 +640,7 @@ sub _expand_expr_hashpair {
       }
       my ($vk, $vv) = %$v;
       $vk =~ s/^-//;
+      $vk = lc($vk);
       if ($vk =~ /^(?:not[ _])?between$/) {
         my @rhs = map $self->_expand_expr($_),
                     ref($vv) eq 'ARRAY' ? @$vv : $vv;