projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f0854f2
)
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
ef70e57
..
51ec3a2
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 } };