Author: jcosta(a)redhat.com
Date: 2009-01-14 08:01:25 -0500 (Wed, 14 Jan 2009)
New Revision: 15776
Modified:
entitymanager/branches/v3_2_1_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java
Log:
EJB-404 JBPAPP-1079 - Fixed the test case for PostgreSQL and DB2
Modified:
entitymanager/branches/v3_2_1_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java
===================================================================
---
entitymanager/branches/v3_2_1_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java 2009-01-14
12:39:27 UTC (rev 15775)
+++
entitymanager/branches/v3_2_1_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java 2009-01-14
13:01:25 UTC (rev 15776)
@@ -302,7 +302,7 @@
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 cast(:descr
as string) 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" );
Show replies by date