db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer/sql SqlQueryStatement.java
Date Fri, 05 Sep 2003 22:02:55 GMT
arminw      2003/09/05 15:02:55

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  fix by Kurt Hoehn
  
  Revision  Changes    Path
  1.54      +4 -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.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- SqlQueryStatement.java	5 Sep 2003 16:57:54 -0000	1.53
  +++ SqlQueryStatement.java	5 Sep 2003 22:02:55 -0000	1.54
  @@ -274,13 +274,14 @@
   			if (fld != null)
   			{
                   // added to suport the super reference descriptor
  -                if(!fld.getClassDescriptor().getFullTableName().equals( aTableAlias.table))
  +                if(!fld.getClassDescriptor().getFullTableName().equals( aTableAlias.table)
  +                    && aTableAlias.hasJoins())
                   {
                       Iterator itr = aTableAlias.joins.iterator();
                       while( itr.hasNext() )
                       {
                           Join join = (Join) itr.next();
  -                        if( join.right.table == fld.getClassDescriptor().getFullTableName()
)
  +                        if( join.right.table.equals(fld.getClassDescriptor().getFullTableName())
)
                           {
                               result = join.right.alias + "." + fld.getColumnName();
                               break;
  
  
  

---------------------------------------------------------------------
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