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

          Hide
          Houx Zhang added a comment -

          As the diffrent is just on prompt message, it's safe to just set a local setup.

          D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests
          .tests.lang.ErrorCodeTest
          .
          Time: 2.344

          OK (1 test)

          D:\derby\test>

          Show
          Houx Zhang added a comment - As the diffrent is just on prompt message, it's safe to just set a local setup. D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functionTests .tests.lang.ErrorCodeTest . Time: 2.344 OK (1 test) D:\derby\test>
          Hide
          Bryan Pendleton added a comment -

          Thanks Houx! This patch looks fine to me. Committed to the
          trunk as revision 1128942.

          Show
          Bryan Pendleton added a comment - Thanks Houx! This patch looks fine to me. Committed to the trunk as revision 1128942.
          Hide
          Houx Zhang added a comment -

          Thanks, Bryan.

          Show
          Houx Zhang added a comment - Thanks, Bryan.
          Hide
          Myrna van Lunteren added a comment -

          reopening for backport to 10.8

          Show
          Myrna van Lunteren added a comment - reopening for backport to 10.8
          Hide
          Myrna van Lunteren added a comment -

          backported to 10.8 with revision 1157937.

          Show
          Myrna van Lunteren added a comment - backported to 10.8 with revision 1157937.
          Hide
          Knut Anders Hatlen added a comment -

          [bulk update: close all resolved issues that haven't had any activity the last year]

          Show
          Knut Anders Hatlen added a comment - [bulk update: close all resolved issues that haven't had any activity the last year]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development