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/test/org/apache/ojb/p6spy CountLogger.java
Date Tue, 23 Dec 2003 09:55:50 GMT
brj         2003/12/23 01:55:50

  Modified:    src/test/org/apache/ojb/p6spy Tag: OJB_BRANCH_1_0
                        CountLogger.java
  Log:
  workaround for p6spy problem (not excluding 'resultset')
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.1   +9 -2      db-ojb/src/test/org/apache/ojb/p6spy/CountLogger.java
  
  Index: CountLogger.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/p6spy/CountLogger.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- CountLogger.java	10 Dec 2003 09:30:06 -0000	1.3
  +++ CountLogger.java	23 Dec 2003 09:55:50 -0000	1.3.2.1
  @@ -36,6 +36,13 @@
      */
     public void logSQL(int i, String s, long l, String s1, String s2, String s3)
     {
  +      if (s1.equals("resultset"))
  +      {
  +          // BRJ: p6spy workaround 
  +          // resultset cannot be excluded using p6spy properties
  +          return;
  +      }
  +      
       super.logSQL(i, s, l, s1, s2, s3);
       countSQL++;
       logger.info("sql: " + s1 + "|" + s3);
  
  
  

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