mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Extended placeholder syntax test and moved check in tokenizer
This commit is contained in:
parent
52338d6ef5
commit
c75f11bf47
3 changed files with 29 additions and 4 deletions
|
|
@ -1567,7 +1567,10 @@ fn parse_table_identifiers() {
|
|||
|
||||
fn test_table_ident_err(ident: &str) {
|
||||
let sql = format!("SELECT 1 FROM {ident}");
|
||||
assert!(bigquery().parse_sql_statements(&sql).is_err());
|
||||
assert!(
|
||||
bigquery().parse_sql_statements(&sql).is_err(),
|
||||
"Expected error parsing identifier: `{ident}`, within SQL: `{sql}`"
|
||||
);
|
||||
}
|
||||
|
||||
test_table_ident("`spa ce`", None, vec![Ident::with_quote('`', "spa ce")]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue