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 );