You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
findBy with more than 2100 parameters generates an error in SQL Server due to its limitation on the number of parameters in an IN clause.
Current behavior
Error:
An exception occurred while executing a query: SQLSTATE[IMSSP]: Tried to bind parameter number 2101. SQL Server supports a maximum of 2100 parameters.
Bug Report
Summary
findBy
with more than 2100 parameters generates an error in SQL Server due to its limitation on the number of parameters in anIN
clause.Current behavior
Error:
An exception occurred while executing a query: SQLSTATE[IMSSP]: Tried to bind parameter number 2101. SQL Server supports a maximum of 2100 parameters.
How to reproduce
On MSSQL
private EntityRepository $doctrineRepository;
$ids = [1,2,... ,2101];
$this->doctrineRepository->findBy(['id' => $ids ])
Expected behavior
Doctrine should handle cases where the number of parameters exceeds 2100.
The text was updated successfully, but these errors were encountered: