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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -