db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r365612 - /db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/Having.java
Date Tue, 03 Jan 2006 11:46:39 GMT
Author: mbo
Date: Tue Jan  3 03:46:36 2006
New Revision: 365612

URL: http://svn.apache.org/viewcvs?rev=365612&view=rev
Log:
JDO-244 fixed SELECT clause accessing field declared in a subclass of the candidate class

Modified:
    db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/Having.java

Modified: db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/Having.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/Having.java?rev=365612&r1=365611&r2=365612&view=diff
==============================================================================
--- db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/Having.java (original)
+++ db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/query/result/Having.java Tue Jan  3 03:46:36
2006
@@ -49,7 +49,7 @@
     private static final QueryElementHolder[] VALID_QUERIES = {
         new QueryElementHolder(
         /*UNIQUE*/      null,
-        /*RESULT*/      "department, SUM(salary)",
+        /*RESULT*/      "department, AVG(weeklyhours)",
         /*INTO*/        null, 
         /*FROM*/        Employee.class,
         /*EXCLUDE*/     null,
@@ -70,7 +70,7 @@
     private static final QueryElementHolder[] INVALID_QUERIES = {
         new QueryElementHolder(
         /*UNIQUE*/      null,
-        /*RESULT*/      "department, SUM(salary)",
+        /*RESULT*/      "department, AVG(weeklyhours)",
         /*INTO*/        null, 
         /*FROM*/        Employee.class,
         /*EXCLUDE*/     null,
@@ -91,10 +91,10 @@
         Arrays.asList(new Object[] {
             new Object[] {
                     getTransientCompanyModelInstance("dept1"),
-                    new Double(45000.0)},
+                    new Double(33.0)},
             new Object[] {
                     getTransientCompanyModelInstance("dept2"),
-                    new Double(58000.0)}})
+                    new Double(0.0)}})
     };
         
     /**



Mime
View raw message