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

when query with field SQLITE_INTEGER, use sqlite3_column_int64 to keep int value ok #2

Open
matlab2000 opened this issue Oct 18, 2023 · 0 comments

Comments

@matlab2000
Copy link

origin code:
case SQLITE_INTEGER:
row.push_back(field_type(sqlite3_column_int(stmt, i), ::sqlite3_column_name(stmt_, i)));

here sqlite3_column_int should change to sqlite3_column_int64, or we'll get wrong value if value > 2G
row.push_back(field_type(sqlite3_column_int64(stmt, i), ::sqlite3_column_name(stmt_, i)));

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

No branches or pull requests

1 participant