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

Use case-when-then in Update ORM queries for collections #82

Open
ufoscout opened this issue Mar 7, 2016 · 0 comments
Open

Use case-when-then in Update ORM queries for collections #82

ufoscout opened this issue Mar 7, 2016 · 0 comments

Comments

@ufoscout
Copy link
Owner

ufoscout commented Mar 7, 2016

To be investigated: how to handle cases in which the condition has more than one field involved?
For example, could something similar to the following query be executed?

UPDATE tablename SET
    CASE (name, id)
        WHEN ('name1', 'id1') THEN col1=5,col2=''
        WHEN ('name2', 'id2') THEN col1=3,col2='whatever'
        ELSE ...
    END;
@ufoscout ufoscout added this to the 8.6.x milestone Mar 7, 2016
@ufoscout ufoscout modified the milestones: 8.7.x - Chop-chop Cheetah, 8.6.x - Broken Beetle :( Mar 11, 2016
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

1 participant