From: Matt S Trout Date: Mon, 18 Mar 2013 00:37:29 +0000 (+0000) Subject: don't negate undef in Slice/FetchFirst X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=710a5e2ce4a0afe8847705cf563ab6f322129344;p=dbsrgits%2FData-Query.git don't negate undef in Slice/FetchFirst --- diff --git a/lib/Data/Query/Renderer/SQL/Slice/FetchFirst.pm b/lib/Data/Query/Renderer/SQL/Slice/FetchFirst.pm index 0bb96e0..f2741d6 100644 --- a/lib/Data/Query/Renderer/SQL/Slice/FetchFirst.pm +++ b/lib/Data/Query/Renderer/SQL/Slice/FetchFirst.pm @@ -72,7 +72,7 @@ sub _render_slice { : (), ], compose { - Order($b->{by}, !$b->{reverse}, -$b->{nulls}, $a) + Order($b->{by}, !$b->{reverse}, -($b->{nulls}||0), $a) } ( @outside_order, Alias(