-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-128 Update with Join and Where clause fails in Oracle
The following test fails when run on Oracle: UpdateTests/testUpdateWithJoinAndWhere() Fails with an assertion error because the arguments passed to PreparedStatement are in the wrong positions. This happens because Oracle is the only supported database to use a subquery directly in the UPDATE syntax to represent the join part and the WHERE clause together. And, unlike other DB, this WHERE clause also comes before the UPDATE set clause. Fixed by reversing the order of arguments in the UpdateStatement query builder, specifically when an update-with-join operation is executed.
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters