db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Øystein Grøvlen (JIRA) <j...@apache.org>
Subject [jira] Created: (DERBY-2940) CollationTest fail after hard upgrade from 10.2
Date Mon, 16 Jul 2007 15:16:04 GMT
CollationTest fail after hard upgrade from 10.2
-----------------------------------------------

                 Key: DERBY-2940
                 URL: https://issues.apache.org/jira/browse/DERBY-2940
             Project: Derby
          Issue Type: Bug
          Components: Regression Test Failure
    Affects Versions: 10.3.1.2
         Environment: Hard upgrade of 10.2 database.
            Reporter: Øystein Grøvlen


I create a database with 10.2.2.0 and then do a hard upgrade to 10.3.1.2:

> java -jar db-derby-10.2.2.0-lib/lib/derbyrun.jar ij
ij version 10.2
ij> connect 'jdbc:derby:system/wombat;create=true';
ij> exit;
> java -jar db-derby-10.3.1.2-bin/lib/derbyrun.jar ij
ij version 10.3
ij> connect 'jdbc:derby:system/wombat;upgrade=true';
ij> exit;

If I then run the CollationTest, I get:

There was 1 failure:
1) testDefaultCollation(org.apache.derbyTesting.functionTests.tests.lang.CollationTest)junit.framework.AssertionFailedError:
Column value mismatch @ column '1', row 1:
    Expected: >UCS_BASIC<
    Found:    >null<
        at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:873)
        at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:766)        at
org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:704)        at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:662)
       at org.apache.derbyTesting.functionTests.tests.lang.CollationTest.checkLangBasedQuery(CollationTest.java:1014)
        at org.apache.derbyTesting.functionTests.tests.lang.CollationTest.testDefaultCollation(CollationTest.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
        at junit.extensions.TestSetup.run(TestSetup.java:25)
        at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

FAILURES!!!
Tests run: 4,  Failures: 1,  Errors: 0

If I create the database with 10.3 before running the test, the tests suceeds.




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