From: Matt S Trout Date: Mon, 3 Sep 2018 21:50:36 +0000 (+0000) Subject: add -nest to hashpair expansion X-Git-Tag: v2.000000~3^2~506 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6072ba36c7093101a7527db6797d36365b1041a;p=dbsrgits%2FSQL-Abstract.git add -nest to hashpair expansion --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 6be4bbb..e3a537e 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -557,6 +557,9 @@ sub _expand_expr_hashpair { return +{ $k => { $self->{cmp} => $v } }; } } + if ($k eq '-nest') { + return $self->_expand_expr($v); + } return { $k => $v }; }