}
die "Slice's inner is not a Select"
unless is_Select my $orig_select = $dq->{from};
- die "Slice's Select not followed by Order but order_is_stable set"
- unless is_Order $orig_select->{from};
my %remapped = $self->_subquery_remap($orig_select);
return $self->_render(
map {
- $dq->{preserve_order}
+ ($dq->{preserve_order} and @outside_order)
? Select(
\@outside_select_list,
compose {