mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Parse true and false as identifiers in mssql (#1510)
This commit is contained in:
parent
90824486df
commit
3a8369aaf5
6 changed files with 97 additions and 60 deletions
|
@ -1366,6 +1366,18 @@ fn parse_create_table_with_identity_column() {
|
|||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_true_false_as_identifiers() {
|
||||
assert_eq!(
|
||||
ms().verified_expr("true"),
|
||||
Expr::Identifier(Ident::new("true"))
|
||||
);
|
||||
assert_eq!(
|
||||
ms().verified_expr("false"),
|
||||
Expr::Identifier(Ident::new("false"))
|
||||
);
|
||||
}
|
||||
|
||||
fn ms() -> TestedDialects {
|
||||
TestedDialects::new(vec![Box::new(MsSqlDialect {})])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue