Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/SQL/Abstract/Limit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ sub select {

$fields ||= '*'; # in case someone supplies '' or undef

# with no LIMIT parameters, defer to SQL::Abstract [ don't know why the first way fails ]
# return $self->SUPER::select( $table, $fields, $where, $order ) unless $rows;
return SQL::Abstract->new->select( $table, $fields, $where, $order ) unless $rows;
# with no LIMIT parameters, defer to SQL::Abstract
return $self->SUPER::select( $table, $fields, $where, $order ) unless $rows;

# with LIMIT parameters, get the basic SQL without the ORDER BY clause
my ( $sql, @bind ) = $self->SUPER::select( $table, $fields, $where );
Expand Down