We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2f35ba commit 70e825cCopy full SHA for 70e825c
core/series.rs
@@ -170,6 +170,8 @@ impl VTabCursor for GenerateSeriesCursor {
170
let mut start = -1;
171
let mut stop = -1;
172
let mut step = 1;
173
+ // SQLite default for stop when it is omitted
174
+ const DEFAULT_STOP_OMITTED: i64 = u32::MAX as i64;
175
176
if let Some((_, idx_num)) = idx_info {
177
let mut arg_idx = 0;
@@ -181,6 +183,8 @@ impl VTabCursor for GenerateSeriesCursor {
181
183
if idx_num & 2 != 0 {
182
184
stop = extract_arg_integer!(args, arg_idx, i64::MAX);
185
arg_idx += 1;
186
+ } else {
187
+ stop = DEFAULT_STOP_OMITTED;
188
}
189
if idx_num & 4 != 0 {
190
step = args
0 commit comments