格式化GQL查询

时间:2013-03-25 03:23:20

标签: google-app-engine google-cloud-datastore gql

我正在尝试在我的应用中实现此示例: https://developers.google.com/appengine/docs/python/datastore/structuring_for_strong_consistency

我不断收到错误消息: BadQueryError:解析错误:“IS”只能在符号上与“ANCESTOR”进行比较时使用:1

在我的代码中引用了这一行:

result = db.GqlQuery("SELECT * FROM Image WHERE ANCESTER IS :1", get_gallery_key())

任何想法为什么?

1 个答案:

答案 0 :(得分:0)

ANCESTOR在查询中拼写错误。