[Bast-commits] r9301 -
DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Wed May 5 09:11:32 GMT 2010
Author: ribasushi
Date: 2010-05-05 10:11:32 +0100 (Wed, 05 May 2010)
New Revision: 9301
Modified:
DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/SQLAHacks.pm
Log:
If there was no offset, there is no sense in reordering
Modified: DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/SQLAHacks.pm
===================================================================
--- DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/SQLAHacks.pm 2010-05-05 09:08:33 UTC (rev 9300)
+++ DBIx-Class/0.08/branches/subqueried_limit_fixes/lib/DBIx/Class/SQLAHacks.pm 2010-05-05 09:11:32 UTC (rev 9301)
@@ -381,7 +381,7 @@
$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;
}
More information about the Bast-commits
mailing list