mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-11 06:22:04 +00:00
Parse SUBSTRING
FROM
syntax in all dialects, reflect change in the AST (#1173)
This commit is contained in:
parent
929c646bba
commit
6b03a259aa
7 changed files with 47 additions and 95 deletions
|
@ -135,10 +135,6 @@ pub trait Dialect: Debug + Any {
|
|||
fn supports_group_by_expr(&self) -> bool {
|
||||
false
|
||||
}
|
||||
/// Returns true if the dialect supports `SUBSTRING(expr [FROM start] [FOR len])` expressions
|
||||
fn supports_substring_from_for_expr(&self) -> bool {
|
||||
true
|
||||
}
|
||||
/// Returns true if the dialect supports `(NOT) IN ()` expressions
|
||||
fn supports_in_empty_list(&self) -> bool {
|
||||
false
|
||||
|
@ -325,10 +321,6 @@ mod tests {
|
|||
self.0.supports_group_by_expr()
|
||||
}
|
||||
|
||||
fn supports_substring_from_for_expr(&self) -> bool {
|
||||
self.0.supports_substring_from_for_expr()
|
||||
}
|
||||
|
||||
fn supports_in_empty_list(&self) -> bool {
|
||||
self.0.supports_in_empty_list()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue