Cannot execute stored procedure in batch mode after upgrade to 2.3.4.726

View: New views
2 Messages — Rating Filter:   Alert me  

Cannot execute stored procedure in batch mode after upgrade to 2.3.4.726

by ivan.bogouchev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Recently we upgraded to ibatis-sqlmap-2.3.4.726 and since have problems executing stored procedures in batch mode.

The error is : ORA-00900: invalid SQL statement .

Is it a known issue or some problem with our code?

Here is the relevant code:

<parameterMap id="ParamMap" class="map">
    <parameter property="param" jdbcType="BIGINT" javaType="java.lang.Long" mode="IN"/>
</parameterMap>

<procedure id="myProc" parameterMap="ParamMap">
    {call MyProc(?)}
</procedure>

SqlMapExecutor executor ...

executor.startBatch();
executor.update("myProc", paramMap1);
executor.update("myProc", paramMap2);
executor.executeBatch();


Thanks in advance.

Re: Cannot execute stored procedure in batch mode after upgrade to 2.3.4.726

by blmmz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, anybody got any ideas?

I encountered the same problem.


ivan.bogouchev wrote:
Hello,

Recently we upgraded to ibatis-sqlmap-2.3.4.726 and since have problems executing stored procedures in batch mode.

The error is : ORA-00900: invalid SQL statement .

Is it a known issue or some problem with our code?

Here is the relevant code:

<parameterMap id="ParamMap" class="map">
    <parameter property="param" jdbcType="BIGINT" javaType="java.lang.Long" mode="IN"/>
</parameterMap>

<procedure id="myProc" parameterMap="ParamMap">
    {call MyProc(?)}
</procedure>

SqlMapExecutor executor ...

executor.startBatch();
executor.update("myProc", paramMap1);
executor.update("myProc", paramMap2);
executor.executeBatch();


Thanks in advance.