Remove test that now parses

This commit is contained in:
Simon Vandel Sillesen 2025-07-02 21:44:44 +02:00
parent 54027b6c22
commit 44ceedaf05

View file

@ -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")