Yes, it works. I use key only queries a lot.  I could help more if you
posted the code with the query.

On Wed, Jan 19, 2011 at 6:52 AM, Kenny <[email protected]> wrote:

> According to:
>
> http://code.google.com/appengine/docs/java/datastore/jdo/queries.html#Queries_on_Keys
>
> We are suppose to be able to get Key only query.  But according to
> this:
>
> http://groups.google.com/group/google-appengine/browse_thread/thread/c9ef645f0f77a53e
>
> Key only result doesn't work.  Has any one tried this and got it
> working?  I gave it a try and I got the result like the second case.
> I got the error:
>
> javax.jdo.JDOUserException: Illegal result clause : PrimaryExpression
> should be a VariableExpression with name id
>
> Now... my attempt have an additional filter on the query.  Does that
> matter?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.

Reply via email to