EJB-404 - Changing the order of the predicates in testIsNull. Now it pleases PostgreSQL as well
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15696 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
a824ec66b5
commit
4fa064b209
|
@ -305,7 +305,7 @@ public class QueryTest extends TestCase {
|
|||
em.flush();
|
||||
em.clear();
|
||||
Query q = em.createQuery(
|
||||
"select i from Item i where (i.descr is null and :descr is null) or i.descr = :descr"
|
||||
"select i from Item i where i.descr = :descr or (i.descr is null and :descr is null)"
|
||||
);
|
||||
//Query q = em.createQuery( "select i from Item i where (i.descr is null and :descr is null) or (i.descr = :descr");
|
||||
q.setParameter( "descr", "dd" );
|
||||
|
|
Loading…
Reference in New Issue