mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Remove test that now parses
This commit is contained in:
parent
54027b6c22
commit
44ceedaf05
1 changed files with 1 additions and 8 deletions
|
@ -11125,16 +11125,9 @@ fn parse_trailing_comma() {
|
|||
);
|
||||
trailing_commas.verified_stmt(r#"SELECT "from" FROM "from""#);
|
||||
|
||||
// doesn't allow any trailing commas
|
||||
// doesn't allow all trailing commas
|
||||
let trailing_commas = TestedDialects::new(vec![Box::new(GenericDialect {})]);
|
||||
|
||||
assert_eq!(
|
||||
trailing_commas
|
||||
.parse_sql_statements("SELECT name, age, from employees;")
|
||||
.unwrap_err(),
|
||||
ParserError::ParserError("Expected an expression, found: from".to_string())
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
trailing_commas
|
||||
.parse_sql_statements("REVOKE USAGE, SELECT, ON p TO u")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue