Are you actually putting " where 'name'/ID "  in your GQL?
Don't you want the following:

SELECT * FROM Activity where __key__ =
Key('Activity','Lesson/level3gratitude')



On Wed, Dec 22, 2010 at 2:00 PM, stace <[email protected]> wrote:

> I have another query issue - not sure if I should do a new post or not -
> but here it is!
>
> I'm trying to find Activity types by using their ID/name value - which look
> like this:
>
> *Decoded entity key:* *Activity: name=Lesson/level3gratitude*
>
> This doesn't prove as easy as searching for keys that are numbers - when I
> try doing this:
>
> SELECT * FROM Activity where 'name'/ID =
> Key('Activity',Lesson/level3gratitude)
>
> I get a GQL syntax error.  When I try again using quotes around the value,
>
> SELECT * FROM Activity where 'name'/ID =
> Key('Activity','Lesson/level3gratitude')
>
> it does not pull up the record.
>
> I'm not sure how to escape the forward slash - or if that is the problem?
>
> thanks in advance!
> *
> *
> *
> *
>
> --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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