add -nest to hashpair expansion
Matt S Trout [Mon, 3 Sep 2018 21:50:36 +0000 (21:50 +0000)]
lib/SQL/Abstract.pm

index 6be4bbb..e3a537e 100644 (file)
@@ -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 };
 }