sqlitepp
sqlitepp copied to clipboard
when query with field SQLITE_INTEGER, use sqlite3_column_int64 to keep int value ok
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)));