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

Oversight in TestSequenceGenerator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M3
    • Component/s: sql
    • Labels:
      None

      Description

      There is a small oversight in TestSequenceGenerator which results in the test being run on a database without sequences and not being run on a database with sequences.

      The snippet:

      try

      { enabled = ((JDBCConfiguration) emf.getConfiguration()) .getDBDictionaryInstance().nextSequenceQuery == null; }

      catch (Throwable t)

      { enabled = false; }

      should read:

      try { enabled = ((JDBCConfiguration) emf.getConfiguration()) .getDBDictionaryInstance().nextSequenceQuery != null; } catch (Throwable t) { enabled = false; }

        Attachments

          Activity

            People

            • Assignee:
              techhusky Jeremy Bauer
              Reporter:
              milosz Milosz Tylenda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: