mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
Merge 'translate: return parse error for unsupported join types' from Jussi Saurio
We were silently ignoring these before Closes #3006
This commit is contained in:
@@ -996,6 +996,12 @@ fn parse_join(
|
||||
|
||||
let (outer, natural) = match join_operator {
|
||||
ast::JoinOperator::TypedJoin(Some(join_type)) => {
|
||||
if join_type.contains(JoinType::RIGHT) {
|
||||
crate::bail_parse_error!("RIGHT JOIN is not supported");
|
||||
}
|
||||
if join_type.contains(JoinType::CROSS) {
|
||||
crate::bail_parse_error!("CROSS JOIN is not supported");
|
||||
}
|
||||
let is_outer = join_type.contains(JoinType::OUTER);
|
||||
let is_natural = join_type.contains(JoinType::NATURAL);
|
||||
(is_outer, is_natural)
|
||||
|
||||
Reference in New Issue
Block a user