Skip to content

Commit

Permalink
fix: remove row_id unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Jan 2, 2025
1 parent 5472826 commit a850b24
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions core/translate/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -977,12 +977,11 @@ fn try_index_cover(
let (pos, _) = table.get_column(&index_column.name).unwrap();
index_column_map.insert(pos, i);
}
if table.has_rowid {
let pos = table
.columns
.iter()
.position(|column| column.is_rowid_alias)
.unwrap();
if let Some(pos) = table
.columns
.iter()
.position(|column| column.is_rowid_alias)
{
index_column_map.insert(pos, index_column_map.len());
}

Expand Down

0 comments on commit a850b24

Please sign in to comment.