You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: promote unsigned integers to double to prevent overflow - #413
It's not clear to me that all users of the "unsigned" data type will want it to map to double, on the off chance that the values exceed 2^31-1. In other packages I've been exploring ways to configure handling of type conversion in an argument to dbConnect(). Let me think about how to standardize this; I'm also happy to review a proposal.
I'd like to move away from the bigint argument altogether and return an ALTREP vector that can store data losslessly and coerce to whatever type the application requires. In #639, unsigned ints will be just returned as doubles. With ALTREP, this can then be coerced to an integer or a string without materializing the doubles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attempt to fix #412 , #171 , #132
Adds
is_unsignedparameter tovariable_type_from_field_type, and for unsigned ints (MYSQL_TYPE_LONG), will promote toMY_DBLinstead ofMY_INT32