Skip to content

Add select expressions for the Postgres INSERT ... RETURNING support#398

Merged
fulghum merged 1 commit intomainfrom
fulghum/insert_returning
Feb 14, 2025
Merged

Add select expressions for the Postgres INSERT ... RETURNING support#398
fulghum merged 1 commit intomainfrom
fulghum/insert_returning

Conversation

@fulghum
Copy link
Copy Markdown

@fulghum fulghum commented Feb 14, 2025

Postgres allows INSERT statements (and also UPDATE and DELETE) to specify a RETURNING clause with select expressions and will then evaluate those expressions against the affected rows and return the results. This change adds initial support for the RETURNING select expressions so that they can be represented in the AST. (PostgreSQL docs)

@fulghum fulghum requested a review from zachmu as a code owner February 14, 2025 22:48
@fulghum fulghum requested a review from jycor February 14, 2025 22:48
Copy link
Copy Markdown

@jycor jycor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fulghum fulghum merged commit a0ed461 into main Feb 14, 2025
@fulghum fulghum deleted the fulghum/insert_returning branch February 14, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants