ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "supriya .pelluru" <supriyanaidupell...@gmail.com>
Subject Delete statements cannot be executed as a query
Date Wed, 30 Apr 2008 09:45:40 GMT
Hi to All



when i am executing the  this delet query  in ibatis
<delete id="delete the record from usetable"   parameterClass="booksform">
delete  FROM IBATISUSERBOOK   where  STATUS='Y'  and  REQUEST_STATUS='Y'
</delete>

i am getting this error
Delete statements cannot be executed as a query.
 at
com.ibatis.sqlmap.engine.mapping.statement.DeleteStatement.executeQueryForObject(DeleteStatement.java:33)
 at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:566)
 at
com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:541)

in action class  code is
sqlMap.queryForObject("delete the record from usetable");

Mime
View raw message