From 09a3009a0b8e73898d195f1374c8c1645f37eda4 Mon Sep 17 00:00:00 2001 From: Zdenko Nevrala Date: Thu, 5 Oct 2023 21:29:47 +0200 Subject: [PATCH] CR. --- src/parser/mod.rs | 2 +- tests/sqlparser_common.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 21460b962..f18c7e1a1 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -1327,7 +1327,7 @@ impl<'a> Parser<'a> { trim_characters: None, }) } else if self.consume_token(&Token::Comma) - && dialect_of!(self is SnowflakeDialect | BigQueryDialect) + && dialect_of!(self is SnowflakeDialect | BigQueryDialect | GenericDialect) { let characters = self.parse_comma_separated(Parser::parse_expr)?; self.expect_token(&Token::RParen)?; diff --git a/tests/sqlparser_common.rs b/tests/sqlparser_common.rs index 9c85cfb1c..aaf0df007 100644 --- a/tests/sqlparser_common.rs +++ b/tests/sqlparser_common.rs @@ -5219,7 +5219,7 @@ fn parse_trim() { //keep Snowflake/BigQuery TRIM syntax failing let all_expected_snowflake = TestedDialects { dialects: vec![ - Box::new(GenericDialect {}), + //Box::new(GenericDialect {}), Box::new(PostgreSqlDialect {}), Box::new(MsSqlDialect {}), Box::new(AnsiDialect {}),