EJB-404 JBPAPP-1079 - Fixed the test case for PostgreSQL and DB2
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15778 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
bfcb39ce21
commit
d6e005a8b7
|
@ -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 = :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" );
|
||||
|
|
Loading…
Reference in New Issue