google-code-export / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
1 stars 3 forks source link

IN operator not working in gqlQuery #136

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Tried to make a gqlQuery with an IN operator
- Query failed through Google_Http_Request to 
https://www.googleapis.com/datastore/v1beta2/datasets/
- Query failed through https://developers.google.com/apis-explorer/

What do you see instead?
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "INVALID_ARGUMENT",
    "message": "Encountered \"IN\" at line 1, column 79.\nWas expecting one of:\n    \"contains\" ...\n    \"has\" ...\n    \"is\" ...\n    \"=\" ...\n    \"<\" ...\n    \"<=\" ...\n    \">\" ...\n    \">=\" ...\n    \"(\" ...\n    "
   }
  ],
  "code": 400,
  "message": "Encountered \"IN\" at line 1, column 79.\nWas expecting one of:\n    \"contains\" ...\n    \"has\" ...\n    \"is\" ...\n    \"=\" ...\n    \"<\" ...\n    \"<=\" ...\n    \">\" ...\n    \">=\" ...\n    \"(\" ...\n    "
 }
}

What version of the product are you using? On what operating system?
PHP app_engine_release=1.8.9
Google API Client v0.6.7 and v1.0

Weird thing is, if I try the same gqlquery through the old Datastore viewer at  
https://appengine.google.com/datastore/explorer , the IN operator works

Original issue reported on code.google.com by ry...@pincup.com on 11 Feb 2014 at 11:55