OpenJPA
  1. OpenJPA
  2. OPENJPA-389

em.getTransaction().commit() is not issuing database commit for NativeQuery requesting updates

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1, 1.1.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      If update is requested by a native query and it is the only method run in the application,
      following query.executeUpdate(),
      em.getTransaction().commit(0 is not issuing database commit.
      If after that, em.close() was not issued, any subsequent query againt the same table which involved in the previous
      native query update will get blocked.

        Activity

        Catalina Wei created issue -
        Hide
        Catalina Wei added a comment -

        fix committed under revision 581088 (trunk) and 581083 (branch 1.0.x)

        Show
        Catalina Wei added a comment - fix committed under revision 581088 (trunk) and 581083 (branch 1.0.x)
        Catalina Wei made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Donald Woods made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Catalina Wei
            Reporter:
            Catalina Wei
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development