Handle empty projection in Postgres SELECT statements (#1613)

This commit is contained in:
Toby Hede 2024-12-23 02:19:43 +10:00 committed by GitHub
parent 0647a4aa82
commit 27822e254b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 39 additions and 2 deletions

View file

@ -231,6 +231,16 @@ impl Dialect for PostgreSqlDialect {
fn supports_named_fn_args_with_expr_name(&self) -> bool {
true
}
/// Return true if the dialect supports empty projections in SELECT statements
///
/// Example
/// ```sql
/// SELECT from table_name
/// ```
fn supports_empty_projections(&self) -> bool {
true
}
}
pub fn parse_create(parser: &mut Parser) -> Option<Result<Statement, ParserError>> {