File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments