diff --git a/extensions/series/src/lib.rs b/extensions/series/src/lib.rs index ffa0871c6..ddae6aa99 100644 --- a/extensions/series/src/lib.rs +++ b/extensions/series/src/lib.rs @@ -83,24 +83,11 @@ impl VTabModule for GenerateSeriesVTab { } fn next(cursor: &mut Self::VCursor) -> ResultCode { - // Check for invalid ranges (empty series) first - if cursor.eof() { - return ResultCode::EOF; - } - - // Handle overflow - cursor.current = match cursor.current.checked_add(cursor.step) { - Some(val) => val, - None => { - return ResultCode::EOF; - } - }; - - ResultCode::OK + cursor.next() } fn eof(cursor: &Self::VCursor) -> bool { - cursor.is_invalid_range() || cursor.would_exceed() + cursor.eof() } }