use -literal for top level exprs
Matt S Trout [Sat, 8 Sep 2018 01:55:26 +0000 (01:55 +0000)]
lib/SQL/Abstract.pm

index deac801..dfeb0f1 100644 (file)
@@ -576,6 +576,9 @@ sub _expand_expr {
     }
     return { '-'.$logic => \@res };
   }
+  if (my $literal = is_literal_value($expr)) {
+    return +{ -literal => $literal };
+  }
   return $expr;
 }