From: Peter Rabbitson Date: Wed, 5 May 2010 09:11:32 +0000 (+0000) Subject: If there was no offset, there is no sense in reordering X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76fc0d714bf3501a2275991d7a243adf6538ac9d;p=dbsrgits%2FDBIx-Class-Historic.git If there was no offset, there is no sense in reordering --- diff --git a/lib/DBIx/Class/SQLAHacks.pm b/lib/DBIx/Class/SQLAHacks.pm index 7cfe8fc..d6abcba 100644 --- a/lib/DBIx/Class/SQLAHacks.pm +++ b/lib/DBIx/Class/SQLAHacks.pm @@ -381,7 +381,7 @@ sub _Top { $sql, $quoted_rs_alias, $order_by_requested, - ) if ($order_by_requested || ($mid_sel ne $out_sel)); + ) if ( ($offset && $order_by_requested) || ($mid_sel ne $out_sel) ); return $sql; }