Skip to content

Commit

Permalink
test compound identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Aug 20, 2023
1 parent f20b182 commit 8800cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sqlparser_mssql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ fn parse_delimited_identifiers() {

#[test]
fn parse_table_name_in_square_brackets() {

Check failure on line 328 in tests/sqlparser_mssql.rs

View workflow job for this annotation

GitHub Actions / codestyle

Diff in /home/runner/work/sqlparser-rs/sqlparser-rs/tests/sqlparser_mssql.rs
let select = ms().verified_only_select(r#"SELECT [a column] FROM [a table]"#);
let select = ms().verified_only_select(r#"SELECT [a column] FROM [a schema].[a table]"#);
if let TableFactor::Table { name, .. } = only(select.from).relation {
assert_eq!(vec![Ident::with_quote('[', "a table")], name.0);
assert_eq!(vec![Ident::with_quote('[', "a schema"), Ident::with_quote('[', "a table")], name.0);
} else {
panic!("Expecting TableFactor::Table");
}
Expand Down

0 comments on commit 8800cf8

Please sign in to comment.