OpenJPA
  1. OpenJPA
  2. OPENJPA-821

slices: DistributedStoreQuery$UpdateExecutor calls executeDelete by mistake

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M1
    • Fix Version/s: 2.0.0-M1
    • Component/s: slice
    • Labels:
      None

      Description

      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); }

      }
      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            Fernando Padilla
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development