Skip to content

Commit

Permalink
bug #52823 add parameter types in query builder (javiercno)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.4 branch.

Discussion
----------

add parameter types in query builder

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

fix last update, required parameter types in query builder.

#52570

Commits
-------

abd3a9e add parameter types in query builder
  • Loading branch information
xabbuh committed Dec 1, 2023
2 parents 0719891 + abd3a9e commit db0a0ce
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -182,7 +182,7 @@ public function get(): ?array
if ($this->driverConnection->getDatabasePlatform() instanceof OraclePlatform) {
$query = $this->createQueryBuilder('w')
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')')
->setParameters($query->getParameters());
->setParameters($query->getParameters(), $query->getParameterTypes());

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

0 comments on commit db0a0ce

Please sign in to comment.