projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix SQLA condition normalizer sometimes stripping -value ops
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
SQLMaker
/
Util.pm
diff --git
a/lib/DBIx/Class/SQLMaker/Util.pm
b/lib/DBIx/Class/SQLMaker/Util.pm
index
ec83edd
..
e538843
100644
(file)
--- a/
lib/DBIx/Class/SQLMaker/Util.pm
+++ b/
lib/DBIx/Class/SQLMaker/Util.pm
@@
-348,7
+348,11
@@
sub _normalize_cond_unroll_pairs {
and
my $vref = is_plain_value( (values %$rhs)[0] )
) {
- push @conds, { $lhs => { $subop => $$vref } }
+ push @conds, (
+ (length ref $$vref)
+ ? { $lhs => $rhs }
+ : { $lhs => { $subop => $$vref } }
+ );
}
else {
push @conds, { $lhs => $rhs };