I use
q.filter('date >',yesterday) .order("date").order("-liked")

it's ok..but the result confused me..

On Tue, Jan 20, 2009 at 6:15 AM, kang <[email protected]> wrote:

> date is an datetime property...
> I've read the article, does it mean that
>
> SELECT * FROM Image WHERE date > :yesterday
>                                     ORDER BY date, liked
>
> will be OK?
>
>
> On Tue, Jan 20, 2009 at 6:05 AM, Barry Hunter <[email protected]
> > wrote:
>
>>
>> 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 -
>>
>> >>
>>
>
>
> --
> Stay hungry,Stay foolish.
>



-- 
Stay hungry,Stay foolish.

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