From 44ceedaf0551311e87a7d6e32a395ba216e8f994 Mon Sep 17 00:00:00 2001 From: Simon Vandel Sillesen Date: Wed, 2 Jul 2025 21:44:44 +0200 Subject: [PATCH] Remove test that now parses --- tests/sqlparser_common.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/sqlparser_common.rs b/tests/sqlparser_common.rs index 61a4de40..e7b4026f 100644 --- a/tests/sqlparser_common.rs +++ b/tests/sqlparser_common.rs @@ -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")