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:
Juraci Krohling 2009-01-14 13:06:17 +00:00
parent bfcb39ce21
commit d6e005a8b7
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 = :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" );