Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Oct 30, 2023
1 parent f553011 commit 3ca7ef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fastn-core/src/library2022/processor/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ fn resolve_variable_from_doc(
let param_value: Box<dyn rusqlite::ToSql> = match thing {
ftd::interpreter::Value::String { text } => Box::new(text),
ftd::interpreter::Value::Integer { value } => Box::new(value as i32),
ftd::interpreter::Value::Decimal { value } => Box::new(value as f32),
ftd::interpreter::Value::Boolean { value } => Box::new(value as i32),
_ => unimplemented!(), // Handle other types as needed
};

Expand Down Expand Up @@ -273,7 +275,6 @@ fn extract_named_parameters(

// Handle the last param if there was no trailing comma or space
if let State::PushParam = state {
println!("Here");
if !param_name.is_empty() {
let param_value = resolve_param(&param_name, &param_type, doc, &headers, line_number)?;
params.push(Box::new(param_value) as Box<dyn rusqlite::ToSql>);
Expand Down

0 comments on commit 3ca7ef0

Please sign in to comment.