From f9709162cab958e99ec182df05eef79e183add64 Mon Sep 17 00:00:00 2001 From: x86-64 Date: Wed, 30 Mar 2016 12:52:59 +0400 Subject: [PATCH] Scalar::Defer support as column name --- lib/DBIx/Class/Storage/DBIHacks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index e98bc4948..4a2dd33eb 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -1197,7 +1197,7 @@ sub _collapse_cond { $fin_idx->{ "SER_" . serialize $sub_elt } = $sub_elt; } } - elsif (! length ref $where->[$i] ) { + elsif (! ref $where->[$i] ) { my $sub_elt = $self->_collapse_cond({ @{$where}[$i, $i+1] }) or next;