Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-50

Oracle CallableStatment.setNull(...) requires to set TypeName

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 RC1
    • Fix Version/s: 1.0 RC2
    • Component/s: Data
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      In the CallableStatementCreatorImpl Oracle CallableStatment.setNull(....) is required to set the TypeName as well otherwise SQLException will be thrown. This will happen when the SqlType is
      Array.

      java.sql.SQLException: Invalid column type: sqlType=2003
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
      at oracle.jdbc.driver.OraclePreparedStatement.setNull(OraclePreparedStatement.java:1308)

      I have only tried on Oracle database. Not sure other database will have the same behavior as Oracle.

        Attachments

          Activity

            People

            • Assignee:
              thomas.risberg Thomas Risberg
              Reporter:
              78664 Kenneth Chung
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                14 years, 23 weeks, 1 day ago