java - mybatis stored proc not getting committed -
i calling mysql stored proc through mybatis. proc not getting committed in sql server , locking tables. have written in code autocommit jdbc call. me solve this.
this below xml code call proc: <select id="getcontactupdated" statementtype="callable" resulttype=" xxx "> { call [cia-reporting].dbo.reports_returnroireports( #{custom1}, #{custom2}, #{custom3} )}`enter code here` java code: sqlsession sqlsession = sqlsessionfactory.opensession(); { try { mapper = sqlsession.getmapper(xxx.class); sqlsession.getconnection().setautocommit(true); } catch (exception ex) { system.out.println(ex); } }
please let me know if require more info on this. thanks, shilpa.
Comments
Post a Comment