That has nothing to do with ndb; none of those would work with db either. 
The correct query has "WHERE __key__ = KEY(........)".

On Sunday, July 1, 2012 5:38:00 PM UTC+2, saintthor wrote:
>
> ndbModel( id = 'KeyName' ).put()
>
> SELECT * FROM ndbModel where key_name=KEY( 'dbModel', 'KeyName' )
> SELECT * FROM ndbModel where name=KEY( 'dbModel', 'KeyName' )
> SELECT * FROM ndbModel where key=KEY( 'dbModel', 'KeyName' )
> SELECT * FROM ndbModel where id=KEY( 'dbModel', 'KeyName' )
>
> none of the above can get the entity.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/V8ps313xfc4J.
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