-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-493 Update with join query throws if WHERE clause present (
#2207) * fix: EXPOSED-493 Update with join query throws if WHERE clause present Previous refactoring of UpdateStatement.arguments() to properly order registered arguments in an update-from-join statement did not factor in the possibility that the join target would be a subquery or QueryAlias. If this query itself holds a WHERE clause with arguments, the latter will not be registered when preparing the statement, leading to the same 'parameter not filled' errors as previously. This PR ensures any query arguments are registered just before the rest of the join part additional arguments, at whatever point that may be for each database. Tests for single and multiple joins, and joins with update-where, have been edited to include joins with a subquery.
- Loading branch information
Showing
3 changed files
with
53 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