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

Support returning in update many #1669

Closed
Sytten opened this issue May 25, 2023 · 2 comments · Fixed by #1677
Closed

Support returning in update many #1669

Sytten opened this issue May 25, 2023 · 2 comments · Fixed by #1677
Assignees

Comments

@Sytten
Copy link
Contributor

Sytten commented May 25, 2023

Motivation

Currently only update supports the RETURNING clause, but not the update_many.
This is limiting since sometimes you need to use an update_many when the update doesn't support a feature (like a column expression) but then you lose the returning.

Proposed Solutions

Add exec_with_returning to the UpdateMany struct.

Current Workarounds

You have to select back the rows.

@billy1624
Copy link
Member

Hey @Sytten, good suggestion!! I think it's possible and nice to have :)

@billy1624 billy1624 self-assigned this May 30, 2023
@Sytten
Copy link
Contributor Author

Sytten commented Jul 10, 2023

Thanks!

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 a pull request may close this issue.

2 participants