Skip Menu |
 

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

Report information
The Basics
Id: 62671
Status: new
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: (no value)



Subject: limit 0 is evaluated as limit undef
Download (untitled) / with headers
text/plain 263b
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 );


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.