Author: jcosta(a)redhat.com
Date: 2009-01-14 08:06:17 -0500 (Wed, 14 Jan 2009)
New Revision: 15778
Modified:
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java
Log:
EJB-404 JBPAPP-1079 - Fixed the test case for PostgreSQL and DB2
Modified: core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java
===================================================================
---
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java 2009-01-14
13:04:15 UTC (rev 15777)
+++
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java 2009-01-14
13:06:17 UTC (rev 15778)
@@ -305,7 +305,7 @@
em.flush();
em.clear();
Query q = em.createQuery(
- "select i from Item i where i.descr = :descr or (i.descr is null and :descr is
null)"
+ "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