Skip to content

Commit ecfd645

Browse files
committed
< not <=
1 parent dd800c5 commit ecfd645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite_db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ bool SQLiteDB::GetRowIdInfo(const string &table_name, RowIdInfo &row_id_info) {
234234
}
235235
int64_t min_val = stmt.GetValue<int64_t>(0);
236236
int64_t max_val = stmt.GetValue<int64_t>(1);
237-
if (max_val <= 0 || min_val <= 0 || max_val < min_val) {
237+
if (max_val < 0 || min_val < 0 || max_val < min_val) {
238238
return false;
239239
}
240240
static constexpr int64_t MAX_ROWS = 20000000000000;

0 commit comments

Comments
 (0)