From 7c29b9b0a1c326ba10c4786aaed994299dead463 Mon Sep 17 00:00:00 2001 From: Jason Shin Date: Sat, 20 Jul 2024 11:29:01 +1000 Subject: [PATCH] fix: build issues after converting to Result --- src/ts_generator/sql_parser/expressions/translate_expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts_generator/sql_parser/expressions/translate_expr.rs b/src/ts_generator/sql_parser/expressions/translate_expr.rs index 56f4e31c..8f3168c7 100644 --- a/src/ts_generator/sql_parser/expressions/translate_expr.rs +++ b/src/ts_generator/sql_parser/expressions/translate_expr.rs @@ -104,7 +104,7 @@ pub async fn get_sql_query_param( let table_name: Option; if table_with_joins.is_some() { - table_name = translate_table_from_expr(table_with_joins, &left.clone()); + table_name = translate_table_from_expr(table_with_joins, &left.clone()).ok(); } else if single_table_name.is_some() { table_name = single_table_name.map(|x| x.to_string()); } else {