ibatis - mybatis update is not working -
i'm using mybatis update , query doesn't update table: can 1 me whats going wrong
configuration
<update id="updateinfo" parametertype="int" timeout="20"> update rule_details set state=0 severity ='info' , cfg_id=#{cfg_id} </update
calling
session.selectlist("updateinfo", cfg_id);
and log shows
debug java.sql.preparedstatement - ==> executing: update rule_details set state=0 severity ='warning' , cfg_id=? debug java.sql.preparedstatement - ==> parameters: 2572(integer)
but database not updated data. can 1 please me..
use session.update() not session.selectlist().
Comments
Post a Comment