mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-19 16:14:21 +01:00
fix limit for order by queries with heap-sort style execution
This commit is contained in:
@@ -239,7 +239,11 @@ pub fn emit_order_by(
|
||||
plan,
|
||||
start_reg,
|
||||
t_ctx.limit_ctx,
|
||||
Some(sort_loop_end_label),
|
||||
if !use_heap_sort {
|
||||
Some(sort_loop_end_label)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
)?;
|
||||
|
||||
program.resolve_label(sort_loop_next_label, program.offset());
|
||||
|
||||
Reference in New Issue
Block a user