mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[BUG] No results when adding more than 2 parameters to the querybuilder #5243
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chris-code-lab on GitHub (Sep 9, 2016).
Package version
laravel-doctrine/orm v1.2.5
using -> doctrine/orm v2.5.4
Lumen v5.2.7.
Oracle database.
If I comment any one of the where/addwhere clause, I end up with the expected result set, but if I have more than 2 parameters bound, it returns an empty array instead of 1 row.
$queryBuilder->getParameters()is returning all 3 parameters.When using the 3 parameters, if I copy / paste the string returned by
$queryBuilder->getSQL();into Toad and run the query against the database with the parameter values returned by$queryBuilder->getParameters(), I get 1 row.Same thing happens when I use the setParameters() function instead of setParameter().
Expected behaviour
$results contains 1 row.
Actual behaviour
$results is an empty array.
Link of the issue opened in doctrine-laravel/orm github: https://github.com/laravel-doctrine/orm/issues/179
@Ocramius commented on GitHub (Sep 10, 2016):
This seems to be a DBAL issue. Do you have a reproducible test case for it?