What is intuitive to all though? Since Zend_Db is an abstraction layer
around various vendor databases, it has to encapsulate the "general
perspective" of all the database targets.
Since LIMIT in SQL is far from standardized, and since no predominant
understanding of LIMIT across all databases.. there can be no intuitive
solution for everyone. When we talk about LIMIT, we are generally
talking from a MySQL perspective.
Other database developers know this feature as "FETCH FIRST", "TOP n",
and for the unfortunate of developers, the (IMO) dreadful sub-select
paginator (MSSQL).
I think if BC weren't an issue, limit(0) should probably throw an
exception. The userland caller should know better.
-ralph
On 10/5/10 8:56 AM, Hector Virgen wrote:
So zero equals infinity? Interesting... But with ZF being object-oriented, I
think we can expect more intuitive behavior.
--
Hector Virgen
Sent from my Droid X
On Oct 5, 2010 4:56 AM, "David Muir"
<[email protected]<davidkmuir%[email protected]>>
wrote: