Skip to content

Fix how numbers are converted in result summary #481

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

Merged
merged 3 commits into from
Aug 28, 2019

Conversation

ali-ince
Copy link
Contributor

When the driver is configured with disableLosslessIntegers, it was not possible for the numeric values in result summary to be used as-is because the internal Integer value was assumed.

This PR fixes the problem by checking whether the received value is Integer and makes the conversion to native number only if required (i.e. only if the value is Integer).

Fixes #477.

@ali-ince ali-ince merged commit 504f320 into neo4j:1.7 Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants