openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r790676 [2/2] - in /openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ openjpa-kernel/src/main/java/org/apache/openjpa/datacache/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-kernel/src/main/java/or...
Date Thu, 02 Jul 2009 16:57:18 GMT
Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java?rev=790676&r1=790675&r2=790676&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java
Thu Jul  2 16:57:17 2009
@@ -624,16 +624,15 @@
                     params.putAll(rep);
                 } catch (UserException ue) {
                     invalidatePreparedQuery();
-                    Log log = _em.getConfiguration().getLog(
-                        OpenJPAConfiguration.LOG_RUNTIME);
+                    Log log = _em.getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME);
                     if (log.isWarnEnabled())
                         log.warn(ue.getMessage());
                     return false;
                 }
             }
-            stats.recordExecution(pq.getOriginalQuery(), alreadyCached);
+            stats.recordExecution(pq.getOriginalQuery());
         } else {
-            stats.recordExecution(_query.getQueryString(), alreadyCached);
+            stats.recordExecution(_query.getQueryString());
         }
         return registered == Boolean.TRUE;
     }



Mime
View raw message