(
&self,
args: &[Expr],
)
| 908 | } |
| 909 | |
| 910 | pub(crate) fn function_args_to_sql( |
| 911 | &self, |
| 912 | args: &[Expr], |
| 913 | ) -> Result<Vec<ast::FunctionArg>> { |
| 914 | args.iter() |
| 915 | .map(|e| { |
| 916 | #[expect(deprecated)] |
| 917 | if matches!( |
| 918 | e, |
| 919 | Expr::Wildcard { |
| 920 | qualifier: None, |
| 921 | .. |
| 922 | } |
| 923 | ) { |
| 924 | Ok(ast::FunctionArg::Unnamed(ast::FunctionArgExpr::Wildcard)) |
| 925 | } else { |
| 926 | self.expr_to_sql(e) |
| 927 | .map(|e| ast::FunctionArg::Unnamed(ast::FunctionArgExpr::Expr(e))) |
| 928 | } |
| 929 | }) |
| 930 | .collect::<Result<Vec<_>>>() |
| 931 | } |
| 932 | |
| 933 | /// This function can create an identifier with or without quotes based on the dialect rules |
| 934 | pub(super) fn new_ident_quoted_if_needs(&self, ident: String) -> Ident { |
no test coverage detected