8000 attach all required parameters to query · symfony/symfony@ce03226 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce03226

Browse files
committed
attach all required parameters to query
1 parent 7398334 commit ce03226

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
@@ -182,7 +182,8 @@ public function get(): ?array
182182
// Wrap the rownum query in a sub-query to allow writelocks without ORA-02014 error
183183
if ($this->driverConnection->getDatabasePlatform() instanceof OraclePlatform) {
184184
$query = $this->createQueryBuilder('w')
185-
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')');
185+
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')')
186+
->setParameters($query->getParameters());
186187

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

0 commit comments

Comments
 (0)
0