Parse true and false as identifiers in mssql (#1510)

This commit is contained in:
Ophir LOJKINE 2024-11-13 11:25:26 +01:00 committed by GitHub
parent 90824486df
commit 3a8369aaf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 97 additions and 60 deletions

View file

@ -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 {})])
}