mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-02 13:12:16 +00:00
Handle empty projection in Postgres SELECT statements (#1613)
This commit is contained in:
parent
0647a4aa82
commit
27822e254b
6 changed files with 39 additions and 2 deletions
|
@ -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>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue