From 5861684d1c1c075bbe2d7e99ab72ca863b7e1b04 Mon Sep 17 00:00:00 2001 From: Ajaya Agrawal Date: Tue, 3 Sep 2024 00:46:04 +0530 Subject: [PATCH] fix --- core/lib.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/core/lib.rs b/core/lib.rs index d86e4d9b5..c0f42e574 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -96,9 +96,15 @@ impl Database { } "index" => { let root_page: i64 = row.get::(3)?; - let sql: &str = row.get::<&str>(4)?; - let index = schema::Index::from_sql(sql, root_page as usize)?; - schema.add_index(Rc::new(index)); + match row.get::<&str>(4) { + Ok(sql) => { + let index = + schema::Index::from_sql(sql, root_page as usize)?; + schema.add_index(Rc::new(index)); + } + _ => continue, + // TODO parse auto index structures + } } _ => continue, }