You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Pinaki Poddar (JIRA)" <ji...@apache.org> on 2008/12/10 13:38:44 UTC

[jira] Assigned: (OPENJPA-821) slices: DistributedStoreQuery$UpdateExecutor calls executeDelete by mistake

     [ https://issues.apache.org/jira/browse/OPENJPA-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pinaki Poddar reassigned OPENJPA-821:
-------------------------------------

    Assignee: Pinaki Poddar

> 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
>            Assignee: Pinaki Poddar
>            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.