mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-14 20:44:29 +01:00
Fix bug with multiway joins that include the same table multiple times
This commit is contained in:
@@ -365,7 +365,7 @@ pub fn get_table_ref_bitmask_for_operator<'a>(
|
||||
table_refs_mask |= 1
|
||||
<< tables
|
||||
.iter()
|
||||
.position(|t| Rc::ptr_eq(&t.table, &table_reference.table))
|
||||
.position(|t| &t.table_identifier == &table_reference.table_identifier)
|
||||
.unwrap();
|
||||
}
|
||||
SourceOperator::Search {
|
||||
@@ -374,7 +374,7 @@ pub fn get_table_ref_bitmask_for_operator<'a>(
|
||||
table_refs_mask |= 1
|
||||
<< tables
|
||||
.iter()
|
||||
.position(|t| Rc::ptr_eq(&t.table, &table_reference.table))
|
||||
.position(|t| &t.table_identifier == &table_reference.table_identifier)
|
||||
.unwrap();
|
||||
}
|
||||
SourceOperator::Nothing => {}
|
||||
|
||||
Reference in New Issue
Block a user