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, 20 Feb 2003 21:17:59 GMT
brj         2003/02/20 13:17:59

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  fixed a bug in buildJoinTreeForColumn
  
  Revision  Changes    Path
  1.22      +3 -4      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.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- SqlQueryStatement.java	6 Feb 2003 20:38:49 -0000	1.21
  +++ SqlQueryStatement.java	20 Feb 2003 21:17:59 -0000	1.22
  @@ -1020,12 +1020,11 @@
        */
       private void buildJoinTreeForColumn(String name)
       {
  -        int sepPos = name.lastIndexOf(".");
  -        String pathName;
  +        String pathName = SqlHelper.cleanPath(name);
  +        int sepPos = pathName.lastIndexOf(".");
   
           if (sepPos >= 0)
           {
  -            pathName = SqlHelper.cleanPath(name);
               getTableAlias(pathName.substring(0, sepPos), false); 
           }
   
  
  
  

Mime
View raw message