Jira issue originally created by user honzap:
I'm using the Collection project https://github.com/doctrine/collections and its Criteria building part. I'm not sure if I'm putting this bug to the good project. Please, correct me if not.
There is bug in method isNull: https://github.com/doctrine/collections/blob/master/lib/Doctrine/Common/Collections/ExpressionBuilder.php#L125
This produces SQL command where is 'IS ?' and null value is passed as param. This is fail.
$expr = Criteria::expr();
$criteria = Criteria::create()
This produces SQL: SELECT ... FROM ... WHERE num <= ? AND deleted IS ? with params [ 42, null ]
SELECT ... FROM ... WHERE num <= ? AND deleted IS ?
[ 42, null ]