mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-01 07:24:19 +01:00
fix accidentally removing push_scan_direction()
This commit is contained in:
@@ -90,12 +90,13 @@ fn eliminate_unnecessary_orderby(
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let (key, _) = o.first_mut().unwrap();
|
||||
let (key, direction) = o.first_mut().unwrap();
|
||||
|
||||
let already_ordered =
|
||||
_operator_is_already_ordered_by(operator, key, referenced_tables, available_indexes)?;
|
||||
|
||||
if already_ordered {
|
||||
push_scan_direction(operator, direction);
|
||||
*order_by = None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user