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

Tolerate int32 value in database when reading into an int64 #3

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

peterhoward42
Copy link

The graphson payload that represent int64 and int32 typed values from the database, is a map that contains a string representation of the type, and a separate value field.
The existing code for reading an int64 requires that this string representation of the type is g:Int42.

This change relaxes that requirement to tolerate also the string being g:Int64.

This use case was discovered by a client wishing to de-serialize such a payload into a structure with an int64 field. The value had been created in the database using a neptune query that set an integer property with an integer constant value, where it is impossible to force it to be made as an int64.

This use case discovered in reading a hierarchy node
@peterhoward42 peterhoward42 merged commit c13ceac into master Jul 18, 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
2 participants