db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: db-torque/xdocs release-changes.xml
Date Sat, 11 Sep 2004 14:28:59 GMT
seade       2004/09/11 07:28:59

  Modified:    src/java/org/apache/torque/util Tag: TORQUE_3_1_BRANCH
                        BasePeer.java
               xdocs    Tag: TORQUE_3_1_BRANCH release-changes.xml
  Log:
  Restored sql statement logging (DEBUG level) that was lost in RC2.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.76.2.5  +9 -4      db-torque/src/java/org/apache/torque/util/BasePeer.java
  
  Index: BasePeer.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/util/BasePeer.java,v
  retrieving revision 1.76.2.4
  retrieving revision 1.76.2.5
  diff -u -r1.76.2.4 -r1.76.2.5
  --- BasePeer.java	26 Aug 2004 17:01:25 -0000	1.76.2.4
  +++ BasePeer.java	11 Sep 2004 14:28:59 -0000	1.76.2.5
  @@ -899,8 +899,7 @@
           throws TorqueException
       {
           Query query = createQuery(criteria);
  -        StringBuffer stmt = new StringBuffer();
  -        return query.toStringBuffer(stmt).toString();
  +        return query.toString();
       }
   
       /**
  @@ -1171,6 +1170,10 @@
           }
   
           LimitHelper.buildLimit(criteria, query);
  +        if (log.isDebugEnabled())
  +        {
  +            log.debug(query.toString());
  +        }
           return query;
       }
   
  @@ -2337,7 +2340,9 @@
           }
   
           LimitHelper.buildLimit(criteria, query);
  -        queryString.append(query.toString());
  +        String sql = query.toString();
  +        log.debug(sql);
  +        queryString.append(sql);
       }
   
       /**
  
  
  
  No                   revision
  No                   revision
  1.3.2.29  +3 -0      db-torque/xdocs/release-changes.xml
  
  Index: release-changes.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/release-changes.xml,v
  retrieving revision 1.3.2.28
  retrieving revision 1.3.2.29
  diff -u -r1.3.2.28 -r1.3.2.29
  --- release-changes.xml	11 Sep 2004 13:57:33 -0000	1.3.2.28
  +++ release-changes.xml	11 Sep 2004 14:28:59 -0000	1.3.2.29
  @@ -38,6 +38,9 @@
   <p>
     <ul>
       <li>
  +      Restored sql statement logging (DEBUG level) that was lost in RC2.
  +    </li>
  +    <li>
         TRQS154: TIME should be enclosed in single quotes for SQL Loader.
         Thanks to Matt Finn for the patch.
       </li>
  
  
  

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


Mime
View raw message