db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r578069 - in /db/jdo/trunk: tck2-legacy/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java tck2/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java
Date Fri, 21 Sep 2007 11:26:27 GMT
Author: mbo
Date: Fri Sep 21 04:26:26 2007
New Revision: 578069

URL: http://svn.apache.org/viewvc?rev=578069&view=rev
Log:
JDO-529: add keyword ASCENDING  to the ordering constraint

Modified:
    db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java

Modified: db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java?rev=578069&r1=578068&r2=578069&view=diff
==============================================================================
--- db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java (original)
+++ db/jdo/trunk/tck2-legacy/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java Fri Sep
21 04:26:26 2007
@@ -73,7 +73,7 @@
         query.declareImports(imports);
         query.declareVariables("Project p");
         query.declareParameters("BigDecimal limit");
-        query.setOrdering("firstname, lastname ASCENDING");
+        query.setOrdering("firstname ASCENDING, lastname ASCENDING");
         query.setRange(0, 5);
         String singleStringQuery = 
             "SELECT DISTINCT firstname, lastname " +
@@ -81,7 +81,7 @@
             "WHERE salary > 1000 & projects.contains(p) & " +
             "p.budget > limit " +
             "VARIABLES Project p PARAMETERS BigDecimal limit " +
-            "ORDER BY firstname, lastname ASCENDING RANGE 0, 5";
+            "ORDER BY firstname ASCENDING, lastname ASCENDING RANGE 0, 5";
 
         // query parameters
         Object[] parameters = {new BigDecimal("2000")};        

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java?rev=578069&r1=578068&r2=578069&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/query/api/ChangeQuery.java Fri Sep 21 04:26:26
2007
@@ -73,7 +73,7 @@
         query.declareImports(imports);
         query.declareVariables("Project p");
         query.declareParameters("BigDecimal limit");
-        query.setOrdering("firstname, lastname ASCENDING");
+        query.setOrdering("firstname ASCENDING, lastname ASCENDING");
         query.setRange(0, 5);
         String singleStringQuery = 
             "SELECT DISTINCT firstname, lastname " +
@@ -81,7 +81,7 @@
             "WHERE salary > 1000 & projects.contains(p) & " +
             "p.budget > limit " +
             "VARIABLES Project p PARAMETERS BigDecimal limit " +
-            "ORDER BY firstname, lastname ASCENDING RANGE 0, 5";
+            "ORDER BY firstname ASCENDING, lastname ASCENDING RANGE 0, 5";
 
         // query parameters
         Object[] parameters = {new BigDecimal("2000")};        



Mime
View raw message