openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hthom...@apache.org
Subject svn commit: r1673491 - /openjpa/branches/2.1.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java
Date Tue, 14 Apr 2015 18:28:27 GMT
Author: hthomann
Date: Tue Apr 14 18:28:27 2015
New Revision: 1673491

URL: http://svn.apache.org/r1673491
Log:
OPENJPA-2534: A boolean is not converted correct when using the hint 'UseLiteralInSQL' - made
test update.

Modified:
    openjpa/branches/2.1.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java

Modified: openjpa/branches/2.1.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java?rev=1673491&r1=1673490&r2=1673491&view=diff
==============================================================================
--- openjpa/branches/2.1.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java
(original)
+++ openjpa/branches/2.1.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/literals/TestLiteralInSQL.java
Tue Apr 14 18:28:27 2015
@@ -21,6 +21,9 @@ package org.apache.openjpa.persistence.j
 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 SQ
         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");



Mime
View raw message