Skip Menu |

This queue is for tickets about the SQL-Abstract-Limit CPAN distribution.

Report information
The Basics
Id: 62671
Status: resolved
Priority: 0/
Queue: SQL-Abstract-Limit

People
Owner: Nobody in particular
Requestors: nakamegu [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.141
Fixed in: 0.142



Subject: limit 0 is evaluated as limit undef
When I use search_where of Class::DBI::AbstractSearch with limit argument, limit 0 should mean zero row. But it is treated as undef now. As a result, all rows are taken with limit 0. - SQL-Abstract-Limit-0.141 - perl v5.8.2 built for x86_64-linux-thread-multi
Subject: SQL_Abstract_Limit.diff
--- /usr/lib/perl5/site_perl/5.8.2/SQL/Abstract/Limit.pm.org 2010-11-04 00:58:02.000000000 +0900 +++ /usr/lib/perl5/site_perl/5.8.2/SQL/Abstract/Limit.pm 2010-11-04 00:58:14.000000000 +0900 @@ -213,7 +213,7 @@ my ( $sql, @bind ); - if ( $rows ) + if ( defined $rows ) { ( $sql, @bind ) = $self->SUPER::where( $where );
Fixed with v0.142. Thanks for reporting.