From: Dagfinn Ilmari Mannsåker Date: Fri, 22 Mar 2013 23:12:43 +0000 (+0000) Subject: Preserve NULLS ordering in SubqueryRemap X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f5ba44a5f109cf7f9c331d0843ccf84c6875b37c;p=dbsrgits%2FData-Query.git Preserve NULLS ordering in SubqueryRemap --- diff --git a/lib/Data/Query/Renderer/SQL/Slice/SubqueryRemap.pm b/lib/Data/Query/Renderer/SQL/Slice/SubqueryRemap.pm index 325084b..631b6be 100644 --- a/lib/Data/Query/Renderer/SQL/Slice/SubqueryRemap.pm +++ b/lib/Data/Query/Renderer/SQL/Slice/SubqueryRemap.pm @@ -90,11 +90,11 @@ sub _subquery_remap { Identifier($name); } }; - Order($mapped_by, $_->{reverse}); + Order($mapped_by, $_->{reverse}, $_->{nulls}); } else { my $name = sprintf("ORDER__BY__%03i",++$order_gensym_count); push @inside_select_list, Alias($name, $by); - Order(Identifier($name), $_->{reverse}); + Order(Identifier($name), $_->{reverse}, $_->{nulls}); } } @inside_order;