Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-821

slices: DistributedStoreQuery$UpdateExecutor calls executeDelete by mistake

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.0-M1
    • 2.0.0-M1
    • slice
    • 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); }

      }
      }

      Attachments

        Activity

          People

            ppoddar@apache.org Pinaki Poddar
            fern Fernando Padilla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: