Its not strictly a gql limitation, but rather a datastore limitation.

http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Restrictions_on_Queries

If your 'date' property really is a date, and not a date+time, you
should be ok.

2009/1/20 lookon <[email protected]>:
>
> I got this error:
> BadArgumentError: First ordering property must be the same as
> inequality filter property, if specified for this query; received
> liked, expected date
>
> The things I want to do is getting hot items. My query is
>
> q.filter('date >',yesterday).order("-liked")
>
> So, the error message told me that I cannot do this through gql. Wish
> anyone can tell me the proper way to do this. Thanks.
> >
>



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to