Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

fulghum
Copy link

@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

@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
4 checks passed
@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