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

Ensure bit integer values are returned as Int64 #234

Merged
merged 2 commits into from
Mar 3, 2021
Merged

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Mar 3, 2021

Fixes #207. The issue
here was in our translation from sqlite type to Julia type, we were
using Int, though in the sqlitevalue function that actually
retrieved the value from the database, we used sqlite3_column_int64.
This change just ensures that even in 32-bit systems, we'll return
values as Int64, avoiding issues like the RANDOM() sqlite function,
which returns an Int64 value.

Fixes #207. The issue
here was in our translation from sqlite type to Julia type, we were
using `Int`, though in the `sqlitevalue` function that actually
retrieved the value from the database, we used `sqlite3_column_int64`.
This change just ensures that even in 32-bit systems, we'll return
values as Int64, avoiding issues like the `RANDOM()` sqlite function,
which returns an Int64 value.
@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #234 (85662b9) into master (24b69db) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #234   +/-   ##
=======================================
  Coverage   83.30%   83.30%           
=======================================
  Files           5        5           
  Lines         605      605           
=======================================
  Hits          504      504           
  Misses        101      101           
Impacted Files Coverage Δ
src/SQLite.jl 96.61% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24b69db...a9cae1d. Read the comment docs.

@quinnj quinnj merged commit f3da928 into master Mar 3, 2021
@quinnj quinnj deleted the jq/fix32bit branch March 3, 2021 07:06
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.

Bug related to 32 bit Integers?
1 participant