db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r685733 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
Date Thu, 14 Aug 2008 00:19:48 GMT
Author: myrnavl
Date: Wed Aug 13 17:19:48 2008
New Revision: 685733

URL: http://svn.apache.org/viewvc?rev=685733&view=rev
Log:
DERBY-3831; junit.RuntimeStatisticsParser doesn't fully distinguish names of table or index.
  patch contributed by Junjie Peng

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java?rev=685733&r1=685732&r2=685733&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java
Wed Aug 13 17:19:48 2008
@@ -168,7 +168,7 @@
      */
     public boolean usedTableScan(String tableName){
         return (statistics.indexOf("Table Scan ResultSet for " + 
-                    tableName)!= -1);
+                    tableName + " ")!= -1);
     }
 
     /**
@@ -180,7 +180,7 @@
     public boolean usedSpecificIndexForIndexScan(
     		String tableName, String indexName){
         return (statistics.indexOf("Index Scan ResultSet for " + 
-                    tableName + " using index " + indexName)!= -1);
+                    tableName + " using index " + indexName + " ")!= -1);
     }
 
     /**
@@ -189,7 +189,7 @@
      */
     public boolean usedIndexScan(String tableName){
         return (statistics.indexOf("Index Scan ResultSet for " + 
-                    tableName)!= -1);
+                    tableName + " ")!= -1);
     }
     
     
@@ -217,18 +217,16 @@
     public boolean usedIndexRowToBaseRow(String tableName) {
        
             return (statistics.indexOf("Index Row to Base Row ResultSet for " + 
-                        tableName)!= -1);
-       
+                        tableName + ":")!= -1);       
     }
-    
-    
+        
     /**
      * @param tableName
      * @return true if Used Distinct Scan ResultSet for tablenName
      */
     public boolean usedDistinctScan(String tableName) {
         return (statistics.indexOf("Distinct Scan ResultSet for " + 
-                tableName)!= -1);
+                tableName + " ")!= -1);
 
     }
    



Mime
View raw message