ZF-6237: Wrong order used in example of the limit() method
Description
"Example 15.67. Example of the limit() method" wants to reproduce the following query:
with the following code
$select = $db->select() ->from(array('p' => 'products'), array('product_id', 'product_name')) ->limit(10, 20);
In the API reference, you find the following
So to reproduce the query, you need to swap the numbers 10 and 20.
$select = $db->select()
->from(array('p' => 'products'),
array('product_id', 'product_name'))
->limit(20, 10);
Comments
Posted by Jeroen Le Roy (ultimasnake) on 2009-06-11T03:40:34.000+0000
We (my company) Also stumbled on this problem, unfortunatly we found this problem while limit is implemented on allot of applications.
I guess, it's a documentation bug BUT none the less should be looked at since everybody is relying on the docs!
Posted by Robert Basic (robertbasic) on 2009-11-29T08:21:47.000+0000
Attached the diff file.
Posted by Mickael Perraud (mikaelkael) on 2009-12-17T13:17:17.000+0000
Patch applied with r19726