Skip to content

Commit 369f72c

Browse files
committed
Visit trim arguments in source code order
1 parent 1a3694f commit 369f72c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ast/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,12 +1146,12 @@ pub enum Expr {
11461146
/// TRIM(<expr>, [, characters]) -- PostgreSQL, DuckDB, Snowflake, BigQuery, Generic
11471147
/// ```
11481148
Trim {
1149-
/// The expression to trim from.
1150-
expr: Box<Expr>,
11511149
/// Which side to trim: `BOTH`, `LEADING`, or `TRAILING`.
11521150
trim_where: Option<TrimWhereField>,
1153-
/// Optional expression specifying what to trim from the value.
1151+
/// Optional expression specifying what to trim from the value `expr`.
11541152
trim_what: Option<Box<Expr>>,
1153+
/// The expression to trim from.
1154+
expr: Box<Expr>,
11551155
/// Optional list of characters to trim (dialect-specific).
11561156
trim_characters: Option<Vec<Expr>>,
11571157
},

0 commit comments

Comments
 (0)