Derby
  1. Derby
  2. DERBY-5251

make ErrorCodeTest pass in non-English locale

    Details

      Description

      lang.ErrorCodeTest will fail in Chinese Locale:

      D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
      .tests.lang.ErrorCodeTest
      .F
      Time: 4.797
      There was 1 failure:
      1) test_errorcode(org.apache.derbyTesting.functionTests.tests.lang.ErrorCodeTest
      )junit.framework.AssertionFailedError: Column value mismatch @ column 'MESSAGE',
      row 1:
      Expected: >At least one parameter to the current statement is uninitialized.
      <
      Found: >当前语句中至少一个参数未初始化。<
      at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:121
      3)
      at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:112
      5)
      at org.apache.derbyTesting.junit.JDBC.assertFullResultSetMinion(JDBC.jav
      a:1012)
      at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:935)

      at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:892)

      at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:850)

      at org.apache.derbyTesting.functionTests.tests.lang.ErrorCodeTest.test_e
      rrorcode(ErrorCodeTest.java:88)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
      112)

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

      D:\derby\test>

        Issue Links

          Activity

          Houx Zhang created issue -
          Houx Zhang made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Houx Zhang made changes -
          Attachment DERBY-5251.patch [ 12480775 ]
          Houx Zhang made changes -
          Issue & fix info [Patch Available]
          Houx Zhang made changes -
          Link This issue is part of DERBY-5155 [ DERBY-5155 ]
          Bryan Pendleton made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Issue & fix info [Patch Available]
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Resolution Fixed [ 1 ]
          Houx Zhang made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Myrna van Lunteren made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Myrna van Lunteren made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Resolution Fixed [ 1 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Fix Version/s 10.8.1.6 [ 12316676 ]
          Myrna van Lunteren made changes -
          Fix Version/s 10.8.2.2 [ 12317968 ]
          Fix Version/s 10.8.2.0 [ 12317955 ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Kathey Marsden made changes -
          Labels gsoc11 derby_backport_reject_10_5
          Kathey Marsden made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow jira [ 12614953 ] Default workflow, editable Closed status [ 12801930 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Houx Zhang
              Reporter:
              Houx Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development