projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5d03d60
)
use -literal for top level exprs
Matt S Trout [Sat, 8 Sep 2018 01:55:26 +0000 (
01:55
+0000)]
lib/SQL/Abstract.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
deac801
..
dfeb0f1
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-576,6
+576,9
@@
sub _expand_expr {
}
return { '-'.$logic => \@res };
}
+ if (my $literal = is_literal_value($expr)) {
+ return +{ -literal => $literal };
+ }
return $expr;
}