Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GQL Parser = NULL #123

Open
iamacarpet opened this issue Jun 30, 2016 · 2 comments
Open

GQL Parser = NULL #123

iamacarpet opened this issue Jun 30, 2016 · 2 comments
Labels

Comments

@iamacarpet
Copy link
Contributor

Hello,

I'm trying to do a SELECT query in GQL with a WHERE filter of field = NULL.

It works on the live version of GQL on AppEngine, but it don't work locally using this parser.

I don't mind implementing this if someone can point me in the right direction please?

Regards,
iamacarpet

@tomwalder tomwalder added the bug label Sep 12, 2016
@tomwalder
Copy link
Owner

This maybe resolved with #164

@lifeofguenter
Copy link

Yes, this is resolved with #164. You will not be able to directly query like this:

  • ... WHERE field IS NULL
  • ... WHERE field = NULL

But you'll be able to query for NULL via parameter binding as seen here: https://github.com/tomwalder/php-gds/pull/164/files#diff-796607b903aea97a7e1d0226ce4cbf55R810 - e.g.:

... WHERE field = @null and then pass through 'null' = null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants