mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Make GenericDialect
support trailing commas in projections (#1921)
This commit is contained in:
parent
ed8757f2f0
commit
cf9e50474e
2 changed files with 5 additions and 1 deletions
|
@ -116,6 +116,10 @@ impl Dialect for GenericDialect {
|
|||
true
|
||||
}
|
||||
|
||||
fn supports_projection_trailing_commas(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn supports_asc_desc_in_column_definition(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
|
|
@ -11184,7 +11184,7 @@ fn parse_trailing_comma() {
|
|||
trailing_commas.verified_stmt(r#"SELECT "from" FROM "from""#);
|
||||
|
||||
// doesn't allow any trailing commas
|
||||
let trailing_commas = TestedDialects::new(vec![Box::new(GenericDialect {})]);
|
||||
let trailing_commas = TestedDialects::new(vec![Box::new(PostgreSqlDialect {})]);
|
||||
|
||||
assert_eq!(
|
||||
trailing_commas
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue