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

Boolean literals in GQL causing zero results to return #157

Open
ikromin opened this issue Jun 12, 2017 · 2 comments
Open

Boolean literals in GQL causing zero results to return #157

ikromin opened this issue Jun 12, 2017 · 2 comments
Labels

Comments

@ikromin
Copy link

ikromin commented Jun 12, 2017

I've noticed that Boolean literals are causing GQL to return incorrect results. When I run my query like this:

$ent = $this->data->fetchAll(
		'SELECT * FROM MyEntity WHERE open = @open ORDER BY date DESC',
		['open' => true]);

I get results back, however when I use a literal in the GQL like this:

$ent = $this->data->fetchAll(
		'SELECT * FROM MyEntity WHERE open = true ORDER BY date DESC');

no results are returned.

Is this expected?

@tomwalder
Copy link
Owner

Hi. Is this against the local dev environment, or the live App Engine environment?

@tomwalder tomwalder added the bug label Oct 2, 2017
@ikromin
Copy link
Author

ikromin commented Oct 2, 2017

Hi Tom, this is on the local dev environment, I've not tested the same functionality on the live environment. If it doesn't work on dev for me, I wouldn't expect it would work on live either, anyway I had to fix it on dev to test the rest of my code locally first.

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

2 participants