db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/odmg OQLTest.java
Date Sat, 15 Nov 2003 21:45:55 GMT
brj         2003/11/15 13:45:55

  Modified:    src/test/org/apache/ojb/odmg OQLTest.java
  Log:
  small fix to prevent sql-error using SAPDB
  
  Revision  Changes    Path
  1.13      +2 -2      db-ojb/src/test/org/apache/ojb/odmg/OQLTest.java
  
  Index: OQLTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/OQLTest.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- OQLTest.java	13 Oct 2003 16:48:58 -0000	1.12
  +++ OQLTest.java	15 Nov 2003 21:45:55 -0000	1.13
  @@ -388,11 +388,11 @@
           OQLQuery query = odmg.newOQLQuery();
           query.create("select p.groupName, p.allArticlesInGroup.stock, p.allArticlesInGroup.price"
+
                  " from " + ProductGroup.class.getName() +
  -               " group by groupName");
  +               " group by groupName, allArticlesInGroup.stock, allArticlesInGroup.price");
   
   //        query.create("select p.groupName, sum(p.allArticlesInGroup.stock), sum(p.allArticlesInGroup.price)"
+
   //               " from " + ProductGroup.class.getName() +
  -//               " group by groupName");
  +//               "by groupName, allArticlesInGroup.stock, allArticlesInGroup.price");
   
           List results = (List) query.execute();
           tx.commit();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message