literals on the other side of = are acceptable for a fixed condition
Matt S Trout [Sun, 17 Nov 2013 04:09:15 +0000 (04:09 +0000)]
lib/DBIx/Class/ResultSource.pm

index e9b0f25..d23497c 100644 (file)
@@ -1547,7 +1547,7 @@ sub _extract_fixed_values_for {
   return +{ map {
     is_Value($fixed->{$_})
       ? ($_ => $fixed->{$_}{value})
-      : ()
+      : (is_Literal($fixed->{$_}) ? ($_ => \($fixed->{$_})) : ())
   } keys %$fixed };
 }