Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toInteger() and toIntegerOrNull() don't convert Booleans #2794

Closed
LiorKogan opened this issue Dec 27, 2022 · 1 comment
Closed

toInteger() and toIntegerOrNull() don't convert Booleans #2794

LiorKogan opened this issue Dec 27, 2022 · 1 comment

Comments

@LiorKogan
Copy link
Member

RedisGraph 2.10.4

GRAPH.QUERY g "RETURN toInteger(false)"
(error) Type mismatch: expected String but was Boolean

GRAPH.QUERY g "RETURN toIntegerOrNull(true)"
1) 1) "toIntegerOrNull(true)"
2) 1) 1) (nil)
@AviAvni
Copy link
Collaborator

AviAvni commented Dec 29, 2022

this is by design this change violates 1 tck test are you sure you want this change?

@AviAvni AviAvni closed this as completed Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants