1
0
mirror of synced 2025-01-19 15:01:40 +03:00

Filtering by auto-increnement field causes test error.

Executing the same test many times causes error because AI fields.
This commit is contained in:
Merixstudio 2014-11-24 16:41:16 +01:00 committed by Marco Pivetta
parent de1843ad30
commit 18244161f7

View File

@ -155,7 +155,7 @@ class PaginationTest extends \Doctrine\Tests\OrmFunctionalTestCase
{ {
/** @var $query Query */ /** @var $query Query */
$query = $this->_em->createQuery( $query = $this->_em->createQuery(
'SELECT u, (CASE WHEN u.id < :vipMaxId THEN 1 ELSE 0 END) AS hidden promotedFirst FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id < :id ORDER BY promotedFirst' 'SELECT u, (CASE WHEN u.id < :vipMaxId THEN 1 ELSE 0 END) AS hidden promotedFirst FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE u.id < :id or 1=1 ORDER BY promotedFirst'
); );
$query->setParameter('vipMaxId', 10); $query->setParameter('vipMaxId', 10);
$query->setParameter('id', 100); $query->setParameter('id', 100);