Skip to content

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

@matlab2000

Description

@matlab2000

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)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions