Remove unneeded clone in add_table

Signed-off-by: Piotr Jastrzebski <haaawk@gmail.com>
This commit is contained in:
Piotr Jastrzebski 2024-07-07 08:47:47 +02:00
parent e9032aaeaf
commit 7b6c6ef9f1
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ impl Database {
let root_page: i64 = row.get::<i64>(3)?;
let sql: String = row.get::<String>(4)?;
let table = schema::Table::from_sql(&sql, root_page as usize)?;
schema.add_table(&table.name.to_owned(), table);
schema.add_table(table);
}
RowResult::IO => {
// TODO: How do we ensure that the I/O we submitted to