Skip to content

PostgreSQL: accept an empty target list without FROM (SELECT;) #2863

Closed as not planned

Description

@putao520

Dialect: PostgreSQL

Statement

SELECT;

Current behavior: supports_empty_projections only permits an empty projection when a FROM clause follows, so a bare SELECT; is a syntax error. PG accepts it.

Expected AST: Select { projection: [], from: [] }.

0.63.0 anchor: mod.rs:15257-15262

pg_regress coverage: select (regression); PG's own grammar allows the empty target list

Activity

  1. LucaCappelletti94 commented on Nov 9, 2026

    @LucaCappelletti94
    Contributor

    Fixed on main by #2675. Please stop filing LLM-generated issues without checking main and the open PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions