@@ -515,7 +515,7 @@ where
515
515
/// ```
516
516
/// # use sqlparser::parser::Parser;
517
517
/// # use sqlparser::dialect::GenericDialect;
518
- /// # use sqlparser::ast::{Expr, Function, FunctionArg, FunctionArgExpr, Ident, ObjectName, Value, visit_expressions_mut, visit_statements_mut} ;
518
+ /// # use sqlparser::ast::* ;
519
519
/// # use core::ops::ControlFlow;
520
520
/// let sql = "SELECT x, y FROM t";
521
521
/// let mut statements = Parser::parse_sql(&GenericDialect{}, sql).unwrap();
@@ -525,9 +525,15 @@ where
525
525
/// let old_expr = std::mem::replace(expr, Expr::Value(Value::Null));
526
526
/// *expr = Expr::Function(Function {
527
527
/// name: ObjectName(vec![Ident::new("f")]),
528
- /// args: vec![FunctionArg::Unnamed(FunctionArgExpr::Expr(old_expr))],
528
+ /// args: FunctionArguments::List(FunctionArgumentList {
529
+ /// duplicate_treatment: None,
530
+ /// args: vec![FunctionArg::Unnamed(FunctionArgExpr::Expr(old_expr))],
531
+ /// clauses: vec![],
532
+ /// }),
529
533
/// null_treatment: None,
530
- /// filter: None, over: None, distinct: false, special: false, order_by: vec![],
534
+ /// filter: None,
535
+ /// over: None,
536
+ /// within_group: vec![],
531
537
/// });
532
538
/// }
533
539
/// ControlFlow::<()>::Continue(())
0 commit comments