projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
592fa86
)
Consider a single-value arrayref fixed
Dagfinn Ilmari Mannsåker [Thu, 10 Apr 2014 17:25:33 +0000 (18:25 +0100)]
lib/DBIx/Class/Storage/DBIHacks.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBIHacks.pm
b/lib/DBIx/Class/Storage/DBIHacks.pm
index
80283dc
..
3dba2f7
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBIHacks.pm
+++ b/
lib/DBIx/Class/Storage/DBIHacks.pm
@@
-1009,6
+1009,8
@@
sub _extract_fixed_condition_columns {
push @cols, $lhs if (defined $val and (
! ref $val
or
+ (ref $val eq 'ARRAY' and @$val == 1 and defined $val->[0])
+ or
(ref $val eq 'HASH' and keys %$val == 1 and defined $val->{'='})
));
}