You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a found problem with result mapping when calling procedure and
using inline params.
This mapping works fine:
<parameterMap type="LRU" id="map1">
<parameter property="id" mode="IN" jdbcType="NUMERIC"
javaType="java.lang.Long"/>
<parameter property="result" mode="OUT" jdbcType="CURSOR"
resultMap="com.company.CarMapper.car"/>
</parameterMap>
<select id="selectCar1" statementType="CALLABLE" parameterMap="map1">
{ call PACK1.GET_CAR(?,?) }
</select>
This work too, but not return correct object!
Instead mapped object I get: oracle.jdbc.driver.OracleResultSetImpl
Do I something wrong or is it a bug?
<select id="selectCar2" statementType="CALLABLE">
{ call PACK1.GET_CAR(
#{id, mode=IN, jdbcType=NUMERIC, javaType=java.lang.Long},
#{result, mode=OUT,jdbcType=CURSOR, resultMap=com.company.CarMapper.car})
}
</select>
I use java iBatis 3.0.
Original issue reported on code.google.com by piskunow...@gmail.com on 2 Jun 2010 at 7:37
The text was updated successfully, but these errors were encountered:
That is right. When using cursor you should set your javatype to ResultSet.
Have a look at this test:
http://mybatis.googlecode.com/svn/trunk/src/test/java/org/apache/ibatis/submitte
d/refcursor/
Original comment by eduardo.macarron on 11 Feb 2012 at 7:06
Original issue reported on code.google.com by
piskunow...@gmail.com
on 2 Jun 2010 at 7:37The text was updated successfully, but these errors were encountered: