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

Primary key sequences broken with postgres schemas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.3.0, 2.0.0-M2
    • jdbc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: