Convert a sqlparser `Expr` to our `SqlExpr`.
(expr: &Expr)
| 37 | |
| 38 | /// Convert a sqlparser `Expr` to our `SqlExpr`. |
| 39 | pub fn convert_expr(expr: &Expr) -> Result<SqlExpr> { |
| 40 | convert_expr_depth(expr, &mut 0) |
| 41 | } |
| 42 | |
| 43 | /// Internal recursive helper that carries a depth counter to enforce |
| 44 | /// `MAX_CONVERT_DEPTH` and prevent stack overflow on malformed ASTs. |