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

        Fernando Padilla created issue -
        Pinaki Poddar made changes -
        Field Original Value New Value
        Assignee Pinaki Poddar [ ppoddar@apache.org ]
        Pinaki Poddar made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Pinaki Poddar made changes -
        Component/s kernel [ 12311302 ]
        Component/s slice [ 12312619 ]
        Donald Woods made changes -
        Fix Version/s 2.0.0-M1 [ 12313624 ]
        Affects Version/s 2.0.0-M1 [ 12313624 ]
        Affects Version/s 2.0.0-M2 [ 12313483 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development