projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7dbe118
)
negation expansion
Matt S Trout [Tue, 4 Sep 2018 02:46:19 +0000 (
02:46
+0000)]
lib/SQL/Abstract.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
3078d8e
..
9364128
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-556,6
+556,9
@@
sub _expand_expr_hashpair {
if ($k eq '-nest') {
return $self->_expand_expr($v);
}
+ if (my ($rest) = $k =~/^-not[_ ](.*)$/) {
+ return $self->_expand_expr({ -not => { "-${rest}", $v } }, $logic);
+ }
} else {
if (!ref($v)) {
return +{ $k => { $self->{cmp} => $v } };