mybatis存储过程没有得到提交

时间:2015-07-27 11:17:42

标签: java mysql mybatis

我通过mybatis调用mysql存储过程。但是我的proc没有在sql server中提交并且正在锁定表。我已经在代码中编写了自动提交JDBC调用。有人可以帮我解决这个问题。

This below is the xml code to 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);
        }
    }

如果您需要更多信息,请与我们联系。 谢谢, 希尔帕。

0 个答案:

没有答案