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 Sat, 20 Mar 2004 13:41:51 GMT
brj         2004/03/20 05:41:51

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  small fix to solve problem with multi-segment-path and alias
  
  Revision  Changes    Path
  1.69      +4 -2      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.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- SqlQueryStatement.java	11 Mar 2004 18:16:08 -0000	1.68
  +++ SqlQueryStatement.java	20 Mar 2004 13:41:51 -0000	1.69
  @@ -1272,7 +1272,9 @@
        */
       private TableAlias getTableAliasForPath(String aPath, String aUserAlias, String anOriginalPath)
       {
  -        if (aUserAlias == null || !anOriginalPath.equals(aPath))
  +        // BRJ: solves problem with multi-segment-path 
  +        // if (aUserAlias == null || !anOriginalPath.equals(aPath))
  +        if (aUserAlias == null)
           {
               return getTableAliasForPath(aPath);
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message