Skip to content

Commit c5b810f

Browse files
bug symfony#52581 [Messenger] attach all required parameters to query (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
2 parents 0a30c9b + 38a4125 commit c5b810f

File tree

1 file changed

+2
-1
lines changed
  • src/Symfony/Component/Messenger/Bridge/Doctrine/Transport

1 file changed

+2
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ public function get(): ?array
181181
// Wrap the rownum query in a sub-query to allow writelocks without ORA-02014 error
182182
if ($this->driverConnection->getDatabasePlatform() instanceof OraclePlatform) {
183183
$query = $this->createQueryBuilder('w')
184-
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')');
184+
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')')
185+
->setParameters($query->getParameters());
185186

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

0 commit comments

Comments
 (0)