[Jifty-commit] r3743 - in Jifty-DBI/trunk: lib/Jifty/DBI

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Tue Jul 31 16:26:16 EDT 2007


Author: falcone
Date: Tue Jul 31 16:26:13 2007
New Revision: 3743

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm

Log:
 r23202 at ketch:  falcone | 2007-07-31 16:25:03 -0400
 * we have code that uses Jifty::Collection::implicit_clauses
   and expects that where clause to still show up on an unlimit.
   This is wrong, but we need to sort out the "right" thing to do.


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	Tue Jul 31 16:26:13 2007
@@ -454,7 +454,7 @@
 
     my $query_string = $self->_build_joins . " ";
 
-    if ( $self->_is_limited == 1 ) {
+    if ( $self->_is_limited ) {
         $query_string .= $self->_where_clause . " ";
     }
     if ( $self->distinct_required ) {
@@ -618,7 +618,7 @@
 
     my $query_string = $self->_build_joins . " ";
 
-    if ( $self->_is_limited == 1 ) {
+    if ( $self->_is_limited ) {
         $query_string .= $self->_where_clause . " ";
     }
 


More information about the Jifty-commit mailing list