RIght, using the other style query doesn't produce this problem. Just a random gotcha, i suppose.
On Aug 28, 2:43 pm, uprise78 <[EMAIL PROTECTED]> wrote: > I'm very new to App Engine, but I believe limits are done like so: > > fetch(limit, offset=0) > > or > > count(limit) > > I could be wrong, but the Query (http://code.google.com/appengine/docs/ > datastore/queryclass.html) and GqlQuery (http://code.google.com/ > appengine/docs/datastore/gqlqueryclass.html) class don't support SQL's > 'LIMIT n' method. > > On Aug 28, 2:19 pm, James <[EMAIL PROTECTED]> wrote: > > > You query the datastore as such: > > > latest = Stuff.gql(" ORDER BY date DESC LIMIT 4") > > > four = latest.count() > > > The four variable does not equal "4". For some reason, the limit > > clause is ignored. > > > Is this not a pretty major bug? I'm surprised I'm the first person to > > notice this, from what I can tell. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" 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/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
