Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh commentedApr 11, 2016
Imo a proper fix would rather change the queries to not use a named parameter more than once. |
slootjes commentedApr 18, 2016
I can confirm this fix is working for me. |
fabpot commentedApr 28, 2016
@Tobion Can you have a look at this one? |
fabpot commentedJun 16, 2016
Tobion commentedJun 16, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@hjkl please change |
Tobion commentedJun 16, 2016
This PR needs a rebase. |
hjkl commentedJun 18, 2016
Tobion commentedJun 18, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 |
fabpot commentedJun 19, 2016
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/AChanged the MERGE queries for Oracle and SQL Server to use question mark parameter markers so they work with emulation disabled or enabled -fixes#17284Commits-------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