【发布时间】:2019-11-06 02:12:14
【问题描述】:
我正在尝试使用可选参数获得结果。
result = Tester.gql("WHERE (first_name IS NULL OR first_name = :first_name)"
"AND (last_name IS NULL OR last_name = :last_name)"
"AND (birth_date IS NULL OR birth_date = :birth_date)"
"AND (test_voucher IS NULL OR test_voucher = :test_voucher)", first_name=first_name,
last_name=last_name, birth_date=birth_date, test_voucher=test_voucher)
但是,当我使用这个 GQL 脚本时,我收到了一个关于解析的错误。
{
"error": {
"message": "Parse Error: Invalid WHERE Identifier at symbol ("
}
}
我正试图找出我的 GQL 脚本有什么问题。提前致谢
【问题讨论】:
标签: python-2.7 google-cloud-platform google-cloud-datastore gql