Derby
  1. Derby
  2. DERBY-6088

PreparedStatementTest42 lacks "fail" call when operation unexpectedly succeeds

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.10.1.1
    • Fix Version/s: 10.10.1.1
    • Component/s: JDBC, Test
    • Labels:
      None

      Description

      Ca line 233, this construct lacks a "fail()":

      // verify that certain SQLTypes are illegal
      for ( int i = 0; i < ILLEGAL_JDBC_TYPES.length; i++ )
      {
      try

      { insert.setObject( 1, null, ILLEGAL_JDBC_TYPES[ i ] ); }

      catch (SQLException se)

      { assertSQLState( UNIMPLEMENTED_FEATURE, se ); }

      }

        Issue Links

          Activity

          Dag H. Wanvik created issue -
          Hide
          Dag H. Wanvik added a comment -

          Inserting it, sees the test fail for TINYINT. This type is present in the test's array ILLEGAL_JDBC_TYPES, but not in the code used for checking: ConnectionChild#checkForSupportedDataType and on the client, similarly in PreparedStatement#checkForSupportedDataType.

          Show
          Dag H. Wanvik added a comment - Inserting it, sees the test fail for TINYINT. This type is present in the test's array ILLEGAL_JDBC_TYPES, but not in the code used for checking: ConnectionChild#checkForSupportedDataType and on the client, similarly in PreparedStatement#checkForSupportedDataType.
          Dag H. Wanvik made changes -
          Field Original Value New Value
          Assignee Rick Hillegas [ rhillegas ]
          Hide
          Dag H. Wanvik added a comment -

          I guess this is one is addressed by your patch on DERBY-6000, Rick?

          Show
          Dag H. Wanvik added a comment - I guess this is one is addressed by your patch on DERBY-6000 , Rick?
          Hide
          Rick Hillegas added a comment -

          Hi Dag,

          Yes, this bug should be fixed by derby-6000-19-ac-miscBuddyTestingFixes.diff at subversion revision 1450422. Resolving. Thanks.

          Show
          Rick Hillegas added a comment - Hi Dag, Yes, this bug should be fixed by derby-6000-19-ac-miscBuddyTestingFixes.diff at subversion revision 1450422. Resolving. Thanks.
          Rick Hillegas made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 10.10.0.0 [ 12321550 ]
          Resolution Fixed [ 1 ]
          Rick Hillegas made changes -
          Link This issue relates to DERBY-6000 [ DERBY-6000 ]
          Gavin made changes -
          Workflow jira [ 12762483 ] Default workflow, editable Closed status [ 12801955 ]
          Hide
          Knut Anders Hatlen added a comment -

          [bulk update] Close all resolved issues that haven't been updated for more than one year.

          Show
          Knut Anders Hatlen added a comment - [bulk update] Close all resolved issues that haven't been updated for more than one 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 Resolved Resolved
          5d 9h 31m 1 Rick Hillegas 27/Feb/13 13:07
          Resolved Resolved Closed Closed
          552d 19h 23m 1 Knut Anders Hatlen 03/Sep/14 09:31

            People

            • Assignee:
              Rick Hillegas
              Reporter:
              Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development