don't report an empty order as stable
Matt S Trout [Mon, 18 Mar 2013 02:20:15 +0000 (02:20 +0000)]
lib/DBIx/Class/Storage/DBIHacks.pm

index 3a2d118..8392fb3 100644 (file)
@@ -656,6 +656,8 @@ sub _order_by_is_stable {
     sub { push @ident_dq, $_[0] }, $conv->_order_by_to_dq($order_by)
   );
 
+  return unless @ident_dq;
+
   if ($where) {
     # old _extract_fixed_condition_columns logic
     $self->_scan_nodes({