don't negate undef in Slice/FetchFirst
Matt S Trout [Mon, 18 Mar 2013 00:37:29 +0000 (00:37 +0000)]
lib/Data/Query/Renderer/SQL/Slice/FetchFirst.pm

index 0bb96e0..f2741d6 100644 (file)
@@ -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(