Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-762

Default jdbcType is no longer used as it was in 2.3.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0 Beta 10
    • 3.0 GA Candidate
    • Core
    • None

    Description

      For all input variables that can be null a default jdbcType must be specified, in version 2.3.4 this was not needed.

      Version 2.3.4:
      from ParameterMap.java
      if (jdbcType != JdbcTypeRegistry.UNKNOWN_TYPE)

      { ps.setNull(i + 1, jdbcType); }

      else

      { ps.setNull(i + 1, Types.OTHER); }

      Version 3.0.242:
      from BaseTypeHandler.java
      if (parameter == null) {
      if (jdbcType == null)

      { throw new TypeException("JDBC requires that the JdbcType must be specified for all nullable parameters."); }

      ps.setNull(i, jdbcType.TYPE_CODE);
      } else

      { setNonNullParameter(ps, i, parameter, jdbcType); }

      Attachments

        Activity

          People

            cbegin Clinton Begin
            oddrune Odd-Rune Bekkum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: