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 FROM clause for UPDATE and DELETE statements #100

Closed
slavaavr opened this issue Nov 10, 2021 · 2 comments
Closed

Support FROM clause for UPDATE and DELETE statements #100

slavaavr opened this issue Nov 10, 2021 · 2 comments

Comments

@slavaavr
Copy link

Hi! Is any option to create such query as:

update table1 set a=table2.b
from table2
where table1.id = table2.fk_id

for postgres db?
What do you think about adding this feature? If you don't mind, I may help with the implementation.

@go-jet
Copy link
Owner

go-jet commented Nov 11, 2021

Hi, @slavaavr . from clause for update and delete statements are not currently supported. The workaround would be to use IN operator or raw statement.
Off course, feel free to contribute.

@go-jet go-jet added this to the Version 2.7.0 milestone Dec 3, 2021
@go-jet go-jet changed the title update from Support FROM clause for UPDATE and DELETE statements Dec 3, 2021
@go-jet
Copy link
Owner

go-jet commented Dec 8, 2021

This feature is now implemented in the develop branch and will be released later with release version 2.7.0.

@go-jet go-jet mentioned this issue Jan 20, 2022
@go-jet go-jet closed this as completed Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants