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 ]
          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>
          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 ]
          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.
          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 ]
          Hide
          Houx Zhang added a comment -

          Thanks, Bryan.

          Show
          Houx Zhang added a comment - Thanks, Bryan.
          Houx Zhang made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          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
          Myrna van Lunteren made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          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.
          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 ]
          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]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          6s 1 Houx Zhang 29/May/11 10:27
          In Progress In Progress Resolved Resolved
          10h 27m 1 Bryan Pendleton 29/May/11 20:54
          Reopened Reopened Closed Closed
          5m 52s 1 Myrna van Lunteren 15/Aug/11 19:31
          Closed Closed Reopened Reopened
          471d 9h 47m 2 Kathey Marsden 13/Sep/12 00:08
          Reopened Reopened Resolved Resolved
          11m 19s 1 Kathey Marsden 13/Sep/12 00:20
          Resolved Resolved Closed Closed
          429d 2h 15m 2 Knut Anders Hatlen 15/Nov/13 08:15

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development