mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-29 02:14:07 +00:00
Support for unquoted hyphenated identifiers on bigquery (#1109)
This commit is contained in:
parent
498708c463
commit
398a81029e
7 changed files with 298 additions and 175 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue