tomwalder / php-gds

Google Cloud Datastore Library for PHP
Apache License 2.0
164 stars 44 forks source link

GQL Parser = NULL #123

Open iamacarpet opened 8 years ago

iamacarpet commented 8 years ago

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 commented 6 years ago

This maybe resolved with #164

lifeofguenter commented 6 years ago

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

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