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

Does not support join in update statement #671

Closed
Blackdread opened this issue Oct 30, 2019 · 1 comment
Closed

Does not support join in update statement #671

Blackdread opened this issue Oct 30, 2019 · 1 comment

Comments

@Blackdread
Copy link
Contributor

TableA.join(TableB, JoinType.INNER, TableA.colId, TableB.id)
            .update({ TableB.colId eq myColId }) {
                it[TableA.col3] = 0
                it[TableA.col4] = 0
                it[TableA.col5] = 0
                //...
            }

Will generate something like

UPDATE mySchema.mytableTable1 INNER JOIN mySchema.mytableTable2 
ON mySchema.mytableTable1.colId = mySchema.mytableTable2.id
SET is_system_record = @P0, occ_version_number = mySchema.mytableTable1.occ_version_number + @P1, updated_by = @P2, updated_at = @P3, col3 = @P4, col4= @P5, col5= @P6 WHERE mySchema.mytableTable2.other_id = @P7
@christopher-adolphe
Copy link

Same issue .. I am facing. please any updates on this.

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

3 participants