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

PreparedStatement.setNull(int,int) should throw SQLFeatureNotSupportedException for unsupported types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC
    • None
    • JDBC 4.0

    Description

      The javadoc for PreparedStatement.setNull(int, int) says:
      http://download.java.net/jdk6/docs/api/java/sql/PreparedStatement.html#setNull(int,%20int)

      Throws:
      ...
      SQLFeatureNotSupportedException - if sqlType is a ARRAY, BLOB, CLOB, DATALINK, JAVA_OBJECT, NCHAR, NCLOB, NVARCHAR, LONGNVARCHAR, REF, ROWID, SQLXML or STRUCT data type and the JDBC driver does not support this data type

      Since Derby doesn't support ARRAY, DATALINK, NCHAR, NCLOB, NVARCHAR, LONGNVARCHAR, REF, ROWID, SQLXML or STRUCT the method should throw SQLFeatureNotSupportedException if used with any of these types. Currently, a general type conversion exception is thrown. With the client driver, no exception is thrown when using this method with the unsupported types.

      Attachments

        1. derby-1476-v1.diff
          6 kB
          Knut Anders Hatlen
        2. derby-1476-v1.stat
          0.2 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: