diff --git a/src/sqlite_db.cpp b/src/sqlite_db.cpp index 8e74b86..433ae67 100644 --- a/src/sqlite_db.cpp +++ b/src/sqlite_db.cpp @@ -234,7 +234,7 @@ bool SQLiteDB::GetRowIdInfo(const string &table_name, RowIdInfo &row_id_info) { } int64_t min_val = stmt.GetValue(0); int64_t max_val = stmt.GetValue(1); - if (max_val < 0 || min_val < 0 || max_val < min_val) { + if (min_val < 0 || max_val <= min_val) { return false; } static constexpr int64_t MAX_ROWS = 20000000000000;