diff --git a/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java b/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java index 9e471d32d9..aedaa0db95 100644 --- a/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java +++ b/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java @@ -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" );