Skip to content

Commit adf24f9

Browse files
committed
fix: docs urls fmt, value number literal
1 parent 848dc65 commit adf24f9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/dialect/clickhouse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Dialect for ClickHouseDialect {
7171
true
7272
}
7373

74-
/// See https://clickhouse.com/docs/en/sql-reference/functions#higher-order-functions---operator-and-lambdaparams-expr-function
74+
/// See <https://clickhouse.com/docs/en/sql-reference/functions#higher-order-functions---operator-and-lambdaparams-expr-function>
7575
fn supports_lambda_functions(&self) -> bool {
7676
true
7777
}

src/dialect/duckdb.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl Dialect for DuckDbDialect {
6565
true
6666
}
6767

68-
/// See https://duckdb.org/docs/sql/functions/lambda.html
68+
/// See <https://duckdb.org/docs/sql/functions/lambda.html>
6969
fn supports_lambda_functions(&self) -> bool {
7070
true
7171
}

tests/sqlparser_common.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -13362,17 +13362,17 @@ fn test_parensless_lambdas() {
1336213362
call(
1336313363
"array",
1336413364
[
13365-
Expr::Value(Value::Number("1".to_owned(), false)),
13366-
Expr::Value(Value::Number("2".to_owned(), false)),
13367-
Expr::Value(Value::Number("3".to_owned(), false)),
13365+
Expr::Value(number("1")),
13366+
Expr::Value(number("2")),
13367+
Expr::Value(number("3")),
1336813368
]
1336913369
),
1337013370
Expr::Lambda(LambdaFunction {
1337113371
params: OneOrManyWithParens::One(Ident::new("x")),
1337213372
body: Box::new(Expr::BinaryOp {
1337313373
left: Box::new(Expr::Identifier(Ident::new("x"))),
1337413374
op: BinaryOperator::Plus,
13375-
right: Box::new(Expr::Value(Value::Number("1".to_owned(), false)))
13375+
right: Box::new(Expr::Value(number("1")))
1337613376
})
1337713377
})
1337813378
]

0 commit comments

Comments
 (0)