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

Upgrade xorm to new version which supported update join for all supported databases (#28590) #28668

Merged
merged 1 commit into from
Dec 31, 2023

Commits on Dec 31, 2023

  1. Upgrade xorm to new version which supported update join for all suppo…

    …rted databases (go-gitea#28590)
    
    Fix go-gitea#28547 (comment)
    
    Since https://gitea.com/xorm/xorm/pulls/2383 merged, xorm now supports
    UPDATE JOIN.
    To keep consistent from different databases, xorm use
    `engine.Join().Update`, but the actural generated SQL are different
    between different databases.
    
    For MySQL, it's `UPDATE talbe1 JOIN table2 ON join_conditions SET xxx
    Where xxx`.
    
    For MSSQL, it's `UPDATE table1 SET xxx FROM TABLE1, TABLE2 WHERE
    join_conditions`.
    
    For SQLITE per https://www.sqlite.org/lang_update.html, sqlite support
    `UPDATE table1 SET xxx FROM table2 WHERE join conditions` from
    3.33.0(2020-8-14).
    
    POSTGRES is the same as SQLITE.
    lunny authored and GiteaBot committed Dec 31, 2023
    Configuration menu
    Copy the full SHA
    490a250 View commit details
    Browse the repository at this point in the history