db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r611478 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
Date Sat, 12 Jan 2008 20:57:42 GMT
Author: andyj
Date: Sat Jan 12 12:57:41 2008
New Revision: 611478

URL: http://svn.apache.org/viewvc?rev=611478&view=rev
Log:
assignments are illegal in JDOQL where clause

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

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java?rev=611478&r1=611477&r2=611478&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/jdoql/subqueries/NullSubqueryParameter.java
Sat Jan 12 12:57:41 2008
@@ -63,12 +63,12 @@
             new String[]{"emp1", "emp2", "emp4", "emp6", "emp7", "emp10"});
 
         String singleStringJDOQL = 
-            "SELECT FROM Employee WHERE this.weeklyhours = emp.weeklyhours && " +
-            "emp.firstname = 'emp1First' VARIABLES Employee emp";
+            "SELECT FROM Employee WHERE this.weeklyhours == emp.weeklyhours && "
+
+            "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); 
         executeJDOQuery(ASSERTION_FAILED, apiQuery, singleStringJDOQL, 



Mime
View raw message