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/broker QueryTest.java
Date Sat, 10 May 2003 15:49:47 GMT
brj         2003/05/10 08:49:47

  Modified:    src/test/org/apache/ojb/broker QueryTest.java
  Log:
  fixed problem with missing GROUP BY when using sapdb
  
  Revision  Changes    Path
  1.30      +1 -1      db-ojb/src/test/org/apache/ojb/broker/QueryTest.java
  
  Index: QueryTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/QueryTest.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- QueryTest.java	10 May 2003 08:19:04 -0000	1.29
  +++ QueryTest.java	10 May 2003 15:49:46 -0000	1.30
  @@ -290,7 +290,7 @@
   		crit.addLike("firstname", "%o%");
   		ReportQueryByCriteria q = QueryFactory.newReportQuery(Person.class, crit);
   		q.setColumns(new String[]{"id", "firstname", "count(*)"});
  -        q.addGroupBy("id");
  +        q.addGroupBy(new String[]{"id", "firstname"});
   
   		Iterator iter = broker.getReportQueryIteratorByQuery(q);
   		assertNotNull(iter);
  
  
  

Mime
View raw message