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/java/org/apache/ojb/odmg/oql oql-ojb.g OQLParser.java
Date Tue, 04 Feb 2003 20:36:17 GMT
brj         2003/02/04 12:36:17

  Modified:    src/java/org/apache/ojb/odmg/oql oql-ojb.g OQLParser.java
  Log:
  support for DISTINCT in normal queries
  
  Revision  Changes    Path
  1.10      +1 -1      db-ojb/src/java/org/apache/ojb/odmg/oql/oql-ojb.g
  
  Index: oql-ojb.g
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/oql/oql-ojb.g,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- oql-ojb.g	5 Jan 2003 14:19:55 -0000	1.9
  +++ oql-ojb.g	4 Feb 2003 20:36:16 -0000	1.10
  @@ -383,7 +383,7 @@
               if (clazz != null) {
                   if (projectionAttrs[0].indexOf('.') < 0)
                   {
  -                    query = QueryFactory.newQuery(clazz, criteria);
  +                    query = QueryFactory.newQuery(clazz, criteria, distinct);
                   }
                   else
                   {
  
  
  
  1.9       +1 -1      db-ojb/src/java/org/apache/ojb/odmg/oql/OQLParser.java
  
  Index: OQLParser.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/oql/OQLParser.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- OQLParser.java	5 Jan 2003 14:19:55 -0000	1.8
  +++ OQLParser.java	4 Feb 2003 20:36:16 -0000	1.9
  @@ -171,7 +171,7 @@
   			if (clazz != null) {
   			if (projectionAttrs[0].indexOf('.') < 0)
   			{
  -			query = QueryFactory.newQuery(clazz, criteria);
  +			query = QueryFactory.newQuery(clazz, criteria, distinct);
   			}
   			else
   			{
  
  
  

Mime
View raw message