mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-15 00:09:02 +00:00
Fix SUBSTRING from/to argument construction for mssql (#947)
This commit is contained in:
parent
173a6db818
commit
8bbb85356c
7 changed files with 153 additions and 24 deletions
|
@ -117,6 +117,10 @@ 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
|
||||
}
|
||||
/// Dialect-specific prefix parser override
|
||||
fn parse_prefix(&self, _parser: &mut Parser) -> Option<Result<Expr, ParserError>> {
|
||||
// return None to fall back to the default behavior
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue