Skip to content

Commit

Permalink
bug symfony#52581 [Messenger] attach all required parameters to query…
Browse files Browse the repository at this point in the history
… (xabbuh)

This PR was merged into the 5.4 branch.

Discussion
----------

[Messenger] attach all required parameters to query

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix symfony#52570
| License       | MIT

Commits
-------

38a4125 attach all required parameters to query
  • Loading branch information
nicolas-grekas committed Nov 14, 2023
2 parents 0a30c9b + 38a4125 commit c5b810f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -181,7 +181,8 @@ public function get(): ?array
// Wrap the rownum query in a sub-query to allow writelocks without ORA-02014 error
if ($this->driverConnection->getDatabasePlatform() instanceof OraclePlatform) {
$query = $this->createQueryBuilder('w')
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')');
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')')
->setParameters($query->getParameters());

if (method_exists(QueryBuilder::class, 'forUpdate')) {
$query->forUpdate();
Expand Down

0 comments on commit c5b810f

Please sign in to comment.