We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GenericDialect
1 parent ed8757f commit cf9e504Copy full SHA for cf9e504
2 files changed
src/dialect/generic.rs
@@ -116,6 +116,10 @@ impl Dialect for GenericDialect {
116
true
117
}
118
119
+ fn supports_projection_trailing_commas(&self) -> bool {
120
+ true
121
+ }
122
+
123
fn supports_asc_desc_in_column_definition(&self) -> bool {
124
125
tests/sqlparser_common.rs
@@ -11184,7 +11184,7 @@ fn parse_trailing_comma() {
11184
trailing_commas.verified_stmt(r#"SELECT "from" FROM "from""#);
11185
11186
// doesn't allow any trailing commas
11187
- let trailing_commas = TestedDialects::new(vec![Box::new(GenericDialect {})]);
+ let trailing_commas = TestedDialects::new(vec![Box::new(PostgreSqlDialect {})]);
11188
11189
assert_eq!(
11190
trailing_commas
0 commit comments