Derby
  1. Derby
  2. DERBY-6088

PreparedStatementTest42 lacks "fail" call when operation unexpectedly succeeds

    Details

    • Type: Bug Bug
    • Status: Resolved
    • 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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development