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

Primary key sequences broken with postgres schemas

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: jdbc
    • Labels:
      None

      Description

      as per http://www.nabble.com/forum/ViewPost.jtp?post=15460899&framed=y

      OpenJPA issues a SELECT currval('user_id_seq'); query to get the current PK value on postgres. This should not execute correctly when using a schema. The correct query is SELECT currval('schemaname.user_id_seq');

        Attachments

        1. OPENJPA-557.patch
          14 kB
          Milosz Tylenda

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rogerkeays Roger Keays
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: