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 08:19:04 GMT
brj         2003/05/10 01:19:04

  Modified:    src/test/org/apache/ojb/broker QueryTest.java
  Log:
  fixed problem with missing GROUP BY when using mysql
  
  Revision  Changes    Path
  1.29      +1 -0      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.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- QueryTest.java	29 Apr 2003 15:43:26 -0000	1.28
  +++ QueryTest.java	10 May 2003 08:19:04 -0000	1.29
  @@ -290,6 +290,7 @@
   		crit.addLike("firstname", "%o%");
   		ReportQueryByCriteria q = QueryFactory.newReportQuery(Person.class, crit);
   		q.setColumns(new String[]{"id", "firstname", "count(*)"});
  +        q.addGroupBy("id");
   
   		Iterator iter = broker.getReportQueryIteratorByQuery(q);
   		assertNotNull(iter);
  
  
  

Mime
View raw message