From 9d4c78dfffb9a0dfd73298a9bf3a0dabe10d9153 Mon Sep 17 00:00:00 2001 From: Heath Thomann Date: Tue, 14 Apr 2015 18:58:07 +0000 Subject: [PATCH] OPENJPA-2534: A boolean is not converted correct when using the hint 'UseLiteralInSQL' - made test update. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1673509 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/jpql/literals/TestLiteralInSQL.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java index d8efd070d..895c12985 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java @@ -21,6 +21,9 @@ package org.apache.openjpa.persistence.jpql.literals; import javax.persistence.EntityManager; import javax.persistence.Query; +import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.sql.DBDictionary; +import org.apache.openjpa.jdbc.sql.PostgresDictionary; import org.apache.openjpa.persistence.simple.AllFieldTypes; import org.apache.openjpa.persistence.test.SQLListenerTestCase; @@ -33,6 +36,12 @@ public class TestLiteralInSQL extends SQLListenerTestCase { EntityManager em = emf.createEntityManager(); em = emf.createEntityManager(); + DBDictionary dict = ((JDBCConfiguration)emf.getConfiguration()).getDBDictionaryInstance(); + //Disable on Postgres for now.... + if (dict instanceof PostgresDictionary){ + setTestsDisabled(true); + return; + } resetSQL(); Query q = em.createQuery("SELECT f FROM AllFieldTypes f WHERE f.booleanField=true");