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
53 bits is the max of Number.MAX_SAFE_INTEGER for baseline javascript numbers which use the same data type as DOUBLE. (9007199254740991 for reference).
for clarification:
is the expectation that the number would then instead return in a BigInt instead? was the input already a BigInt?
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Linux 5.4.0-153-generic x86_64 x86_64
What steps can reproduce the bug?
Create a SQLite row with an INT or DOUBLE value over 53 bits
Select the row using .get() or .values() and print it
Resulting numbers are changed
What is the expected behavior?
The unchanged version of the number should be given
What do you see instead?
INT provided with value 990760989492400188
Object given with value 990760989492400100
Additional information
Seemingly happens from numbers over 53 bits
The text was updated successfully, but these errors were encountered: