Skip to content

Insert statement should support WITH clause #2350

Closed
@odannyc

Description

@odannyc

What do you want to change?

The query:

INSERT INTO some_table
WITH foo AS (
...
)
SELECT ...
FROM another_table
JOIN foo ON ...
WHERE ...

The error:

relation "foo" does not exist

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerenhancementNew feature or requesttriageNew issues that hasn't been reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions