From: Matt S Trout Date: Mon, 18 Mar 2013 02:20:15 +0000 (+0000) Subject: don't report an empty order as stable X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8c7a98096e3daff65298327716297db19b2fcd9b;p=dbsrgits%2FDBIx-Class-Historic.git don't report an empty order as stable --- diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index 3a2d118..8392fb3 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -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({