on-internet
← Community

Error occurred while setting parameters

Stack Overflow ·

I'm trying to call a procedure with MyBatis. This is the procedure signature: PROCEDURE pr_start(io_calc IN OUT TYPE_CALC, in_restart BOOLEAN DEFAULT TRUE, in_user VARCHAR2 DEFAULT NULL); It's in a package named PACKAGE_PP. This is how TYPE_CALC is declared: CREATE OR REPLACE TYPE TYPE_CALC AS OBJECT ( modelField VARCHAR2(5 CHAR), sysField VARCHAR2(5 CHAR), hexField VARCHAR2(5 CHAR) ); This is my XML mapping: <select id="pr_start" statementType="CALLABLE" parameterType="map"> { exec PACKAGE_PP.pr_start( #{io_calc,mode=INOUT,jdbcType=STRUCT,jdbcTypeName=TYPE_CALC}, #{in_restart,mode=IN,jdbcType

Comments

Sign in or sign up to comment and upvote.

No comments yet.