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

Oversight in TestSequenceGenerator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0-M2
    • 2.0.0-M3
    • sql
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: