Skip to content

Commit 695a2e2

Browse files
clippy fix
1 parent 0621b8c commit 695a2e2

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/sqlparser_common.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18785,14 +18785,11 @@ fn parse_non_pg_dialects_keep_xml_names_as_regular_functions() {
1878518785
// On dialects that do NOT support XML expressions, `xmlconcat(...)`
1878618786
// should parse as a plain function call, not as `Expr::XmlConcat`.
1878718787
let dialects = all_dialects_except(|d| d.supports_xml_expressions());
18788-
for fn_name in ["xmlconcat"] {
18789-
let sql = format!("SELECT {fn_name}(1, 2)");
18790-
let select = dialects.verified_only_select(&sql);
18791-
match expr_from_projection(&select.projection[0]) {
18792-
Expr::Function(func) => {
18793-
assert_eq!(func.name.to_string(), fn_name);
18794-
}
18795-
other => panic!("Expected Expr::Function for {fn_name}, got: {other:?}"),
18788+
let select = dialects.verified_only_select("SELECT xmlconcat(1, 2)");
18789+
match expr_from_projection(&select.projection[0]) {
18790+
Expr::Function(func) => {
18791+
assert_eq!(func.name.to_string(), "xmlconcat");
1879618792
}
18793+
other => panic!("Expected Expr::Function, got: {other:?}"),
1879718794
}
1879818795
}

0 commit comments

Comments
 (0)