From: Matt S Trout Date: Sat, 26 Oct 2013 21:20:36 +0000 (+0000) Subject: handle \$dq in order by X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02202b68f102805836afff2f6b41ce5cee57312e;p=dbsrgits%2FSQL-Abstract.git handle \$dq in order by --- diff --git a/lib/SQL/Abstract/Converter.pm b/lib/SQL/Abstract/Converter.pm index d2a3741..d9c6a97 100644 --- a/lib/SQL/Abstract/Converter.pm +++ b/lib/SQL/Abstract/Converter.pm @@ -554,6 +554,8 @@ sub _order_by_to_dq { return $outer; } elsif (ref($arg) eq 'REF' and ref($$arg) eq 'ARRAY') { $dq->{by} = $self->_literal_to_dq($$arg); + } elsif (ref($arg) eq 'REF' and ref($$arg) eq 'HASH') { + $dq->{by} = $$arg; } elsif (ref($arg) eq 'SCALAR') { # < mst> right, but if it doesn't match that, it goes "ok, right, not sure,