mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-14 15:59:03 +00:00
Add support for parsing MsSql alias with equals (#1467)
This commit is contained in:
parent
7c20d4ae1f
commit
1dd7d26fbb
4 changed files with 50 additions and 0 deletions
|
@ -561,6 +561,17 @@ pub trait Dialect: Debug + Any {
|
|||
fn supports_asc_desc_in_column_definition(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Returns true if this dialect supports treating the equals operator `=` within a `SelectItem`
|
||||
/// as an alias assignment operator, rather than a boolean expression.
|
||||
/// For example: the following statements are equivalent for such a dialect:
|
||||
/// ```sql
|
||||
/// SELECT col_alias = col FROM tbl;
|
||||
/// SELECT col_alias AS col FROM tbl;
|
||||
/// ```
|
||||
fn supports_eq_alias_assigment(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
/// This represents the operators for which precedence must be defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue