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, 19 Nov 2005 08:45:46 GMT
brj         2005/11/19 00:45:46

  Modified:    src/java/org/apache/ojb/broker/accesslayer/sql
                        SqlQueryStatement.java
  Log:
  do not translate attribute if no table alias is available
  
  Revision  Changes    Path
  1.106     +2 -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.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- SqlQueryStatement.java	12 Nov 2005 17:59:43 -0000	1.105
  +++ SqlQueryStatement.java	19 Nov 2005 08:45:45 -0000	1.106
  @@ -470,7 +470,7 @@
   	protected boolean appendAttribute(String anAttribute, boolean useOuterJoins, UserAlias
aUserAlias, StringBuffer buf)
       {
           AttributeInfo attrInfo = getAttributeInfo(anAttribute, useOuterJoins, aUserAlias,
getQuery().getPathClasses());
  -        return appendAttribute(attrInfo, true, buf);
  +        return appendAttribute(attrInfo, (attrInfo.getTableAlias() != null), buf);
       }
   
       /**
  
  
  

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