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

how to use parameterMap in ibatis

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • Core
    • None
    • Windows 2003
      JDK1.6
      Tomcat 5.5

    Description

      Dear All,

      I am using ibatis and i want to call function in ibatis but the problem is here when i pass two parameter IN and Out together in to my mysql function it throws exception like:-

      Exception in callFunction of GenerateXMLFromProc Classcom.ibatis.common.jdbc.exception.NestedSQLException:
      — The error occurred in com/wil/web/ibatis/sql/testQry.xml.
      — The error occurred while applying a parameter map.
      — Check the qry.genOuput.
      — Check the parameter mapping for the 'param' property.
      — Cause: java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is 1).

      when i use individually IN and OUT parameter in diffrent mysql function it works, so tell me how to use both IN and OUT parameter in function calling through ibatis.

      My developed mysql function perfectly work when i run it from mysql, so i don't understand where is the problem?

      can any one help me out it's urgent for me.
      _________________
      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            mona123 mona
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified