Improvements to toInteger() and toBoolean()

23 views
Skip to first unread message

Valerio Malenchino

unread,
Apr 19, 2021, 8:48:23 AM4/19/21
to openCypher
Dear openCypher community,

Neo4j would like to propose a change to the the behaviour of the functions toInteger() and toBoolean() in the following way:
toInteger() should now also accept a Boolean as a parameter, with toInteger(false) = 0, and toInteger(true) = 1.
toBoolean() should now also accept an Integer parameter, with toBoolean(0) = false, and toBoolean(n) = true, with n<>0.

If you have any objections against these changes, please raise them within the week. If we have not heard anything before noon (CET) on Monday, April 26, we will treat that as silent consensus.

Thank you,
Valerio
Reply all
Reply to author
Forward
0 new messages