Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-239

System.InvalidCastException when Stored Procedure out parameters are null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • DataMapper 1.6.1
    • DataMapper 1.6.2
    • DataMapper
    • None
    • All

    Description

      When a stored procedure with out parameters returns a null value in one of the parameters, the following Exception occurs:

      IBatisNet.Common.Exceptions.ProbeException : Unable to cast object of type 'System.DBNull' to type XXXX

      See also http://www.nabble.com/output-parameters-and-dbnull-p9643387.html

      Attached a patch that seems to solve the problem.

      Attachments

        1. MappedStatement.patch
          3 kB
          Spyros Oikonomopoulos

        Activity

          People

            gilles Gilles Bayon
            ospyros Spyros Oikonomopoulos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: