openjpa-dev mailing list archives

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

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

Pinaki Poddar resolved OPENJPA-821.
-----------------------------------

    Resolution: Fixed

> 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.


Mime
View raw message