Support for unquoted hyphenated identifiers on bigquery (#1109)

This commit is contained in:
Joey Hain 2024-01-23 17:04:22 -08:00 committed by GitHub
parent 498708c463
commit 398a81029e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 298 additions and 175 deletions

View file

@ -507,14 +507,15 @@ fn parse_select_with_table_alias() {
#[test]
fn parse_invalid_table_name() {
let ast = all_dialects()
.run_parser_method("db.public..customer", |parser| parser.parse_object_name());
let ast = all_dialects().run_parser_method("db.public..customer", |parser| {
parser.parse_object_name(false)
});
assert!(ast.is_err());
}
#[test]
fn parse_no_table_name() {
let ast = all_dialects().run_parser_method("", |parser| parser.parse_object_name());
let ast = all_dialects().run_parser_method("", |parser| parser.parse_object_name(false));
assert!(ast.is_err());
}