mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Enable double-dot-notation for mssql. (#1787)
Co-authored-by: Roman Borschel <roman@cluvio.com>
This commit is contained in:
parent
91327bb0c0
commit
25bb871175
2 changed files with 10 additions and 0 deletions
|
@ -101,4 +101,9 @@ impl Dialect for MsSqlDialect {
|
||||||
fn supports_nested_comments(&self) -> bool {
|
fn supports_nested_comments(&self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// See <https://learn.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql>
|
||||||
|
fn supports_object_name_double_dot_notation(&self) -> bool {
|
||||||
|
true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1910,6 +1910,11 @@ fn parse_mssql_varbinary_max_length() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn parse_mssql_table_identifier_with_default_schema() {
|
||||||
|
ms().verified_stmt("SELECT * FROM mydatabase..MyTable");
|
||||||
|
}
|
||||||
|
|
||||||
fn ms() -> TestedDialects {
|
fn ms() -> TestedDialects {
|
||||||
TestedDialects::new(vec![Box::new(MsSqlDialect {})])
|
TestedDialects::new(vec![Box::new(MsSqlDialect {})])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue