mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 22:08:16 +00:00
Add support for qualified column names in JOIN ... USING (#1663)
This commit is contained in:
parent
e9498d538a
commit
44df6d6f92
4 changed files with 35 additions and 7 deletions
|
@ -6541,7 +6541,7 @@ fn parse_joins_using() {
|
|||
sample: None,
|
||||
},
|
||||
global: false,
|
||||
join_operator: f(JoinConstraint::Using(vec!["c1".into()])),
|
||||
join_operator: f(JoinConstraint::Using(vec![ObjectName(vec!["c1".into()])])),
|
||||
}
|
||||
}
|
||||
// Test parsing of aliases
|
||||
|
@ -6598,6 +6598,7 @@ fn parse_joins_using() {
|
|||
only(&verified_only_select("SELECT * FROM t1 FULL JOIN t2 USING(c1)").from).joins,
|
||||
vec![join_with_constraint("t2", None, JoinOperator::FullOuter)]
|
||||
);
|
||||
verified_stmt("SELECT * FROM tbl1 AS t1 JOIN tbl2 AS t2 USING(t2.col1)");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue