Stored procedure 'zhanghouying' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the curr

   E com.yc.ycportal.blockimp.sqlmapdao.BaseDao   
--- The error occurred in com/yc/ycportal/blockimp/sqlmapdao/sqlmap/commonmap.xml. 
--- The error occurred while applying a parameter map. 
--- Check the zhanghouyingpro-InlineParameterMap. 
--- Check the statement (update procedure failed). 
--- Cause: com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'zhanghouying' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the current session to use unchained transaction mode.

[07-5-19 10:31:26:384 CST] 7d323600 SystemOut     O ========执行存储过程失败=======Error executing update.  Cause: com.ibatis.common.jdbc.exception.NestedSQLException:  

 

问题得解决:产生得原因是数据库使用得语句需要自动提交 所以执行con.setAutoCommit(true);就可以了

你可能感兴趣的:(Stored procedure 'zhanghouying' may be run only in unchained transaction mode. The 'SET CHAINED OFF' command will cause the curr)