On Sun, May 3, 2009 at 1:53 PM, Yarko Tymciurak <[email protected]> wrote:

> There are examples throughout the code - look at sql.py and gql.py for
> examples in the docstrings (I agree, the docstrings could explain a little
> more).
>
> select(limitby=(start_record,end_record), so limitby(1,2) would select one
> record - record 1 (2 is not included).
> You can see this in test_dal.py test cases.
>
> The book (page 147) uses an example which does not clear up use:
>
> "With limitby you can select a subset of records, in this case the first
> two starting at zero:
>
> .....select(...., limitby(0,2))
>
> This leaves the use ambiguous:  is 2 the number of records to return, or
> the ending record number? You can't tell from this; you still have to either
> experiment, or look at the test cases.
>

BTW - thanks for your question;  I never spotted this ambiguity before! ;-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to