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 Thu, 10 Apr 2003 20:37:25 GMT
brj         2003/04/10 13:37:25

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  use outer join if extents available
  
  Revision  Changes    Path
  1.35      +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.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- SqlQueryStatement.java	8 Apr 2003 19:07:05 -0000	1.34
  +++ SqlQueryStatement.java	10 Apr 2003 20:37:25 -0000	1.35
  @@ -783,8 +783,8 @@
                   {
                       curr = createTableAlias(cld, attrPath, aUserAlias, aPath);
                       
  -                    // BRJ : use OUTER join for same table
  -                    boolean outer = (curr.cld == prev.cld) || useOuterJoins;
  +                    // BRJ : use OUTER join for same table and existing extents
  +                    boolean outer = (curr.cld == prev.cld) || curr.hasExtents() || useOuterJoins;
                       join = new Join(prev, prevKeys, curr, keys, outer, attr);
                       prev.addJoin(join);
                       
  
  
  

Mime
View raw message