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:
Juraci Krohling 2008-12-15 10:46:00 +00:00
parent a824ec66b5
commit 4fa064b209
1 changed files with 1 additions and 1 deletions

View File

@ -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" );