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/broker/accesslayer/sql SqlQueryStatement.java
Date Wed, 28 May 2003 18:44:55 GMT
brj         2003/05/28 11:44:55

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  use alias of selection criteria
  
  Revision  Changes    Path
  1.41      +3 -3      db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java
  
  Index: SqlQueryStatement.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- SqlQueryStatement.java	25 May 2003 12:05:57 -0000	1.40
  +++ SqlQueryStatement.java	28 May 2003 18:44:55 -0000	1.41
  @@ -1223,12 +1223,12 @@
                   
                   if (c.getAttribute() != null)
                   {
  -                    buildJoinTreeForColumn(c.getAttribute(), useOuterJoin, crit.getAlias());
  +                    buildJoinTreeForColumn(c.getAttribute(), useOuterJoin, c.getAlias());
                   }
                   if (c instanceof FieldCriteria)
                   {
                       FieldCriteria cc = (FieldCriteria) c;
  -                    buildJoinTreeForColumn((String) cc.getValue(), useOuterJoin, crit.getAlias());
  +                    buildJoinTreeForColumn((String) cc.getValue(), useOuterJoin, c.getAlias());
                   }
               }
           } 
  
  
  

Mime
View raw message