memgraph icon indicating copy to clipboard operation
memgraph copied to clipboard

Fix RETURN true, false query

Open gitbuda opened this issue 3 years ago • 1 comments

[master < Task] PR

  • [ ] Update changelog
  • [x] Provide the full content or a guide for the final git message -> Fix RETURN true, false query

Fixes #470

gitbuda avatar Aug 13 '22 10:08 gitbuda

This is a specific solution to a more general problem. The issue is that we replace all returns of constant expressions with default values, true, 0, 0.0, and this solves only the bool part, but e.g. RETURN 1,2; and RETURN 0.1, 0.2; still fails. I would close this issue when all of the cases are covered.

You're right and good catch! I would explore a bit more to find more details on what actually has to be done and then decide, stay tuned... + moving this PR to the Draft stage

gitbuda avatar Aug 16 '22 16:08 gitbuda

Closing this in the end, because the solution is not full + it's easy to write an alternative query that will work (using aliases).

gitbuda avatar Jun 16 '23 23:06 gitbuda