1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Fix and test for DDC-2073

This commit is contained in:
Matthieu Napoli 2012-11-06 15:05:53 +01:00
parent d6d5c341e2
commit e15cf324c3
2 changed files with 10 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class BasicEntityPersister
*/ */
static private $comparisonMap = array( static private $comparisonMap = array(
Comparison::EQ => '= %s', Comparison::EQ => '= %s',
Comparison::IS => '= %s', Comparison::IS => 'IS %s',
Comparison::NEQ => '!= %s', Comparison::NEQ => '!= %s',
Comparison::GT => '> %s', Comparison::GT => '> %s',
Comparison::GTE => '>= %s', Comparison::GTE => '>= %s',

View File

@ -88,4 +88,13 @@ class BasicEntityPersisterTypeValueSqlTest extends \Doctrine\Tests\OrmTestCase
$this->assertEquals('t0."simple-entity-id" AS simpleentityid1, t0."simple-entity-value" AS simpleentityvalue2', $method->invoke($persister)); $this->assertEquals('t0."simple-entity-id" AS simpleentityid1, t0."simple-entity-value" AS simpleentityvalue2', $method->invoke($persister));
} }
/**
* @group DDC-2073
*/
public function testSelectConditionStatementIsNull()
{
$statement = $this->_persister->getSelectConditionStatementSQL('test', null, array(), Comparison::IS);
$this->assertEquals('test IS ?', $statement);
}
} }