Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49a2546

Browse files
committed
attach all required parameters to query
1 parent 0a30c9b commit 49a2546

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)