[jifty-devel] Jifty::DBI::Collection->unlimit

Mikko Lipasti mikko.lipasti at polarcom.fi
Fri Jul 27 02:35:22 EDT 2007


Hello list,


There seems to be a gap between what unlimit does and what the documentation says it does.

http://search.cpan.org/dist/Jifty-DBI/lib/Jifty/DBI/Collection.pm#unlimit:
"Clears all restrictions and causes this object to return all rows in the primary table."

In reality, unlimit calls clean_slate() which does a whole lot more than just removes limits. For instance, it resets order_by().

A doc fix would suffice for me, however I find it a bit unfortunate that an unlimit() call doesn't just undo limit() calls as the names (and to an extent, current documentation) would imply.


- Mikko


More information about the jifty-devel mailing list