openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milosz Tylenda (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-934) Oversight in TestSequenceGenerator
Date Sat, 21 Feb 2009 09:40:01 GMT
Oversight in TestSequenceGenerator
----------------------------------

                 Key: OPENJPA-934
                 URL: https://issues.apache.org/jira/browse/OPENJPA-934
             Project: OpenJPA
          Issue Type: Bug
          Components: sql
    Affects Versions: 2.0.0
            Reporter: Milosz Tylenda
            Priority: Trivial


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;
        }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message