core: fix resolve table name from join

Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
This commit is contained in:
Pere Diaz Bou
2024-07-09 11:15:58 +02:00
parent e0431fdde1
commit 110df3cff1

View File

@@ -619,7 +619,7 @@ fn resolve_ident_table<'a>(
let cursor_id = context
.loops
.iter()
.find(|l| l.table == *table)
.find(|l| l.table == join.table)
.unwrap()
.open_cursor;
return Ok((idx, col, cursor_id));