openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r815369 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/cache/AbstractQueryCacheTest.java
Date Tue, 15 Sep 2009 15:38:13 GMT
Author: faywang
Date: Tue Sep 15 15:38:12 2009
New Revision: 815369

URL: http://svn.apache.org/viewvc?rev=815369&view=rev
Log:
OPENJPA-1151: fix test case error for MySQL. DB object in MySQL is case-sensitive.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/cache/AbstractQueryCacheTest.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/cache/AbstractQueryCacheTest.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/cache/AbstractQueryCacheTest.java?rev=815369&r1=815368&r2=815369&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/cache/AbstractQueryCacheTest.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/cache/AbstractQueryCacheTest.java
Tue Sep 15 15:38:12 2009
@@ -234,11 +234,11 @@
         em.getTransaction().begin();
 
         String insert1 = 
-            "insert into part(partno,parttype,name,cost,mass)" +
+            "insert into Part(partno,parttype,name,cost,mass)" +
             " values(13,'PartBase','breakes',1000.0,100.0)";
         em.createNativeQuery(insert1).executeUpdate();
         String insert2 = 
-            "insert into supplier_part(suppliers_sid,supplies_partno)" + 
+            "insert into Supplier_Part(suppliers_sid,supplies_partno)" + 
             " values(1,13)";
         em.createNativeQuery(insert2).executeUpdate();
 
@@ -248,7 +248,7 @@
         em = emf.createEntityManager();
         em.getTransaction().begin();
 
-        String sql = "select partno from part where cost > 120 ";
+        String sql = "select partno from Part where cost > 120 ";
         Query nativeq = em.createNativeQuery(sql);
         int nativelistSize = nativeq.getResultList().size();
 



Mime
View raw message