Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: SDK crash on conversion of double type range values to long type #342

Conversation

TobiasPott
Copy link
Member

This pull request targets the issue of values retrieved from parse-server exceeding the long64 value range mentioned in #339
It handles it by using a fallback to the double type with a higher range as this also would be the type with which the higher values can only be added to the parse-server using the .NET SDK.

It also includes a test checking for long max and min values and the double max and min values and the specific value mentioned in the issue.

@TheFanatr Could you take a look at this PR and give me feedback whether or not to change anything (especially the test part as I'm unsure if it will be sufficient)

@saamerm
Copy link

saamerm commented Sep 28, 2021

@TheFanatr @TobiasPott any update on this?

@mtrezza mtrezza changed the title Feature/fix conversion error of double type range values to long type fix: SDK crash on conversion of double type range values to long type May 20, 2024
Copy link

Thanks for opening this pull request!

  • ❌ Please link an issue that describes the reason for this pull request, otherwise your pull request will be closed. Make sure to write it as Closes: #123 in the PR description, so I can recognize it.

@mtrezza mtrezza merged commit 816ba02 into parse-community:master May 23, 2024
2 checks passed
parseplatformorg pushed a commit that referenced this pull request May 24, 2024
## [3.0.1](3.0.0...3.0.1) (2024-05-24)

### Bug Fixes

* SDK crash on conversion of double type range values to long type ([#342](#342)) ([816ba02](816ba02))
@parseplatformorg
Copy link

🎉 This change has been released in version 3.0.1

@parseplatformorg parseplatformorg added the state:released Released as stable version label May 24, 2024
@mtrezza mtrezza linked an issue May 24, 2024 that may be closed by this pull request
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
state:released Released as stable version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when parse very long negative values
4 participants