andreasronge/neo4j-cypher — pull request #3 by blizkreeg (2013-10-22 02:50:58+00:00)
Title: node updates fail when a property value is set to boolean false

The cypher query generated without the fix:

START v1=node:idx_node_uuid(uuid="d559cc621ed44f0cbaf238bd6a7cb065") SET =(v1.restricted),v1.uuid = "d559cc621ed44f0cbaf238bd6a7cb065",v1.type = "Organization"

With the fix:

START v1=node:idx_node_uuid(uuid="09bb510d45774d7d96fc057e8eb45c90") SET v1.restricted = false,v1.uuid = "09bb510d45774d7d96fc057e8eb45c90",v1.type = "Organization"

This only happens for boolean property values because of the check if right_operand (which is the value).

Does not happen on creates, only updates.

Tests pass after this fix.