emehrkay / Pypher

Python Cypher Querybuilder
MIT License
170 stars 29 forks source link

Cannot assign 'zero' values #17

Closed alexlitvinenko closed 6 years ago

alexlitvinenko commented 6 years ago

https://github.com/emehrkay/Pypher/blob/ed83579ad2de77b98efed0727507f72679370ced/pypher/builder.py#L757

Given pypher: p.SET.n.property('a_property') == 0.0 Actual cypher will be the following: SET n.a_property = Expected cypher: SET n.a_property = 0.0

emehrkay commented 6 years ago

That is a huge oversight. I have fixed it with 0.11.1. I actually do not know why I have that check in the code, none of my tests address the else case. I will add some code coverage tooling to the stack to prevent that situation in the future.

Thanks, Mark