-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] changed MERGE queries #18501
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
Conversation
Imo a proper fix would rather change the queries to not use a named parameter more than once. |
I can confirm this fix is working for me. |
@Tobion Can you have a look at this one? |
@hjkl please change |
This PR needs a rebase. |
This is exactly what this PR does. NAMED params cannot be used more than once but it's not possible to change the MERGE queries to only use each param once as they need to be repeated. It only works for the MySQL for example because mysql supports the 👍 good to merge |
Thank you @hjkl. |
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] changed MERGE queries | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17284 | License | MIT | Doc PR | N/A Changed the MERGE queries for Oracle and SQL Server to use question mark parameter markers so they work with emulation disabled or enabled - fixes #17284 Commits ------- ebf3a2f Fixed oci and sqlsrv merge queries when emulation is disabled - fixes #17284
$mergeStmt->bindParam(6, $data, \PDO::PARAM_LOB); | ||
$mergeStmt->bindParam(7, $maxlifetime, \PDO::PARAM_INT); | ||
$mergeStmt->bindValue(8, time(), \PDO::PARAM_INT); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hjkl, could you please submit another PR fixing this minor CS issue? Thank you in advance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phansys sure, I can't see the coding standards issue though, could you please clarify for me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the MERGE queries for Oracle and SQL Server to use question mark parameter markers so they work with emulation disabled or enabled - fixes #17284