openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fernando (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-821) slices: DistributedStoreQuery$UpdateExecutor calls executeDelete by mistake
Date Wed, 10 Dec 2008 01:16:47 GMT
slices: DistributedStoreQuery$UpdateExecutor calls executeDelete by mistake
---------------------------------------------------------------------------

                 Key: OPENJPA-821
                 URL: https://issues.apache.org/jira/browse/OPENJPA-821
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 2.0.0
            Reporter: Fernando
            Priority: Critical


At the bottom of DistributedStoreQuery, the UpdateExecutor class, is calling the executeDelete,
instead of the executeUpdate.  Small oversight, easy to fix.. :) :)


Index: openjpa-slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java
===================================================================
--- openjpa-slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java 
      (revision 724945)
+++ openjpa-slice/src/main/java/org/apache/openjpa/slice/jdbc/DistributedStoreQuery.java 
      (working copy)
@@ -269,7 +269,7 @@
                Executor executor;
                Object[] params;
                public Number call() throws Exception {
-                       return executor.executeDelete(query, params);
+                       return executor.executeUpdate(query, params);
                }
        }
 }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message