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

Add support for calculating update value in QueryImpl.updateInMemory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      Since Informix does not support update with in/exists subquery in the where clause, when doing the bulk update against informix, e.g.,

      "update DeptBeanAno d set d.budget = (d.budget * ?1 + ?2) where d.reportsTo.no = ?3"

      we encounter the error of "only-update-primitives" during updateInMemory.

      The attached patch fixes this problem by beefing up the support for arithmetic calcuation of the update value for updateInMemory.

      Attachments

        1. openjpa0528a.patch
          22 kB
          Fay Wang
        2. openjpa0526.patch
          12 kB
          Fay Wang
        3. openjpa.patch
          13 kB
          Fay Wang

        Activity

          People

            Unassigned Unassigned
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: