mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-10 05:52:13 +00:00
Minor: clarify the value of the special flag (#948)
This commit is contained in:
parent
83e30677b0
commit
a7d28582e5
1 changed files with 2 additions and 2 deletions
|
@ -1242,7 +1242,7 @@ impl<'a> Parser<'a> {
|
||||||
expr: Box::new(expr),
|
expr: Box::new(expr),
|
||||||
substring_from: from_expr.map(Box::new),
|
substring_from: from_expr.map(Box::new),
|
||||||
substring_for: to_expr.map(Box::new),
|
substring_for: to_expr.map(Box::new),
|
||||||
special: !self.dialect.supports_substring_from_for_expr(),
|
special: false,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// PARSE SUBSTRING(EXPR, start, length)
|
// PARSE SUBSTRING(EXPR, start, length)
|
||||||
|
@ -1261,7 +1261,7 @@ impl<'a> Parser<'a> {
|
||||||
expr: Box::new(expr),
|
expr: Box::new(expr),
|
||||||
substring_from: from_expr.map(Box::new),
|
substring_from: from_expr.map(Box::new),
|
||||||
substring_for: to_expr.map(Box::new),
|
substring_for: to_expr.map(Box::new),
|
||||||
special: !self.dialect.supports_substring_from_for_expr(),
|
special: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue