[
https://issues.apache.org/jira/browse/OPENJPA-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Donald Woods updated OPENJPA-821:
---------------------------------
Affects Version/s: (was: 2.0.0-M2)
2.0.0-M1
Fix Version/s: 2.0.0-M1
> 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: slice
> Affects Versions: 2.0.0-M1
> Reporter: Fernando
> Assignee: Pinaki Poddar
> Priority: Critical
> Fix For: 2.0.0-M1
>
>
> 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.