sqlitepp icon indicating copy to clipboard operation
sqlitepp copied to clipboard

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

Open matlab2000 opened this issue 2 years ago • 0 comments

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

matlab2000 avatar Oct 18 '23 02:10 matlab2000