Skip to content

Commit

Permalink
fix: docs urls fmt, value number literal
Browse files Browse the repository at this point in the history
  • Loading branch information
gstvg committed Jan 29, 2025
1 parent 848dc65 commit adf24f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/dialect/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Dialect for ClickHouseDialect {
true
}

/// See https://clickhouse.com/docs/en/sql-reference/functions#higher-order-functions---operator-and-lambdaparams-expr-function
/// See <https://clickhouse.com/docs/en/sql-reference/functions#higher-order-functions---operator-and-lambdaparams-expr-function>
fn supports_lambda_functions(&self) -> bool {
true
}
Expand Down
2 changes: 1 addition & 1 deletion src/dialect/duckdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Dialect for DuckDbDialect {
true
}

/// See https://duckdb.org/docs/sql/functions/lambda.html
/// See <https://duckdb.org/docs/sql/functions/lambda.html>
fn supports_lambda_functions(&self) -> bool {
true
}
Expand Down
8 changes: 4 additions & 4 deletions tests/sqlparser_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13362,17 +13362,17 @@ fn test_parensless_lambdas() {
call(
"array",
[
Expr::Value(Value::Number("1".to_owned(), false)),
Expr::Value(Value::Number("2".to_owned(), false)),
Expr::Value(Value::Number("3".to_owned(), false)),
Expr::Value(number("1")),
Expr::Value(number("2")),
Expr::Value(number("3")),
]
),
Expr::Lambda(LambdaFunction {
params: OneOrManyWithParens::One(Ident::new("x")),
body: Box::new(Expr::BinaryOp {
left: Box::new(Expr::Identifier(Ident::new("x"))),
op: BinaryOperator::Plus,
right: Box::new(Expr::Value(Value::Number("1".to_owned(), false)))
right: Box::new(Expr::Value(number("1")))
})
})
]
Expand Down

0 comments on commit adf24f9

Please sign in to comment.