Skip to content
#

cypher

Here are 350 public repositories matching this topic...

memgraph
antonio2368
antonio2368 commented Jan 4, 2022

CASE doesn't work well with null. This works as expected and prints 'works':

WITH 2 AS name
RETURN CASE name
    WHEN 2 THEN 'works'
    WHEN null THEN "doesn't work"
    ELSE 'something went wrong'
END

If we swap the first case from 2 to 3. It should print 'something went wrong', but instead it prints "doesn't work":

WITH 2 AS name
RETURN CASE name
    WHEN 3 THEN 'works'
good first issue

Improve this page

Add a description, image, and links to the cypher topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cypher topic, visit your repo's landing page and select "manage topics."

Learn more