db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r636122 - /db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
Date Tue, 11 Mar 2008 21:59:05 GMT
Author: clr
Date: Tue Mar 11 14:59:02 2008
New Revision: 636122

URL: http://svn.apache.org/viewvc?rev=636122&view=rev
Log:
Fixed subqueries typo in field name firstName

Modified:
    db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java

Modified: db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java?rev=636122&r1=636121&r2=636122&view=diff
==============================================================================
--- db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
(original)
+++ db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
Tue Mar 11 14:59:02 2008
@@ -63,15 +63,15 @@
             new String[]{"emp1", "emp2", "emp4", "emp6", "emp7", "emp10"});
 
         String singleStringJDOQL = 
-            "SELECT FROM " + Employee.class.getName() + 
+            "SELECT FROM " + Employee.class.getName() +
             " WHERE this.weeklyhours == emp.weeklyhours && " +
-            "emp.firstName == 'emp1First' VARIABLES Employee emp";
+            "emp.firstname == 'emp1First' VARIABLES Employee emp";
 
         // API query
         Query apiQuery = pm.newQuery(Employee.class);
-        apiQuery.setFilter("this.weeklyhours == emp.weeklyhours && emp.firstName
== 'emp1First'");
+        apiQuery.setFilter("this.weeklyhours == emp.weeklyhours && emp.firstname
== 'emp1First'");
         // null subquery parameter
-        apiQuery.addSubquery(null, "Employee emp", null); 
+        apiQuery.addSubquery(null, Employee.class.getName() + " emp", null); 
         executeJDOQuery(ASSERTION_FAILED, apiQuery, singleStringJDOQL, 
                         false, null, expectedResult, true);
 



Mime
View raw message