Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1501

PreparedStatement#setNull(int parameterIndex, int sqlType) throws SQL Exception if given sqlType is LONGVARBINARY in embedded mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.1.0
    • 10.3.1.4
    • JDBC
    • None
    • WindowsXP

    Description

      When inserting a row into following table

      BYTEARRAY_TEST( ID int, BYTEARRAY_VAL blob)

      PreparedStatement#setNull(int parameterIndex, int sqlType) throws SQL Exception if given sqlType is LONGVARBINARY. You must give sqlType BLOB to make the insert work. The same test works using sqlType LONGVARBINARY in network mode. The following combinations don't work:

      Column type sqlType not working mandatory sqlType
      BLOB LONGVARBINARY BLOB
      CLOB LONGVARCHAR CLOB

      The issue here is that first Derby behaves differently in network and embedded mode. And secondly, should accept LONGVARBINARY/LONGVARCHAR for BLOB/CLOB columns.

      Attachments

        1. ByteArrayTest.java
          4 kB
          Markus Fuchs

        Issue Links

          Activity

            People

              Unassigned Unassigned
              m_fuchs Markus Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: