From bbd8fe44e95844482f2948b071111f067b8007b5 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 5 Aug 2024 21:41:47 +0200 Subject: [PATCH] fix: Provider when no table is provided --- Cargo.lock | 2 +- src/data_provider.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 064ba25..6e9aa71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,7 +99,7 @@ dependencies = [ [[package]] name = "clangql" -version = "0.6.0" +version = "0.7.0" dependencies = [ "atty", "clang-sys", diff --git a/src/data_provider.rs b/src/data_provider.rs index 7068c14..34fc47f 100644 --- a/src/data_provider.rs +++ b/src/data_provider.rs @@ -44,7 +44,7 @@ fn select_clang_ast_objects( "unions" => select_unions(path, selected_columns)?, "functions" => select_functions(path, selected_columns)?, "globals" => select_variables(path, selected_columns)?, - _ => vec![], + _ => vec![Row { values: vec![] }], }; Ok(rows) }