Skip to content

Allow empty <with column list> #3987

@katzyn

Description

@katzyn

It is possible to execute a CTE query without columns in H2:

WITH A AS (SELECT) TABLE A;
> one row, no columns

But it isn't possible to execute a view with such query:

CREATE VIEW V AS
WITH A AS (SELECT) TABLE A;
> ok

TABLE V;
> view is invalid

This issue is caused by empty <with column list> in persisted query:

WITH "A"() AS (
    SELECT
)
TABLE "A"

Metadata

Metadata

Assignees

No one assigned

    Labels

    WITH clauseRelated to the WITH clause implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions