-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
first,i write daoMapper like this
@Update("Update t_order_status_cal SET is_handled = 1, handled_time = #{ht} WHERE order_id = #{}")
public int updateHandledTime(@Param("orderId") long orderId, @Param("ht") Timestamp handledTime);
but there is an mistake, i miss the orderId param in sql
so when i start the web container and invoke this method updateHandledTime,
mybatis throw this exception
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
i don't think this is an good message for user to understand,
i think the good way to explain this error may be sql parse error
Metadata
Metadata
Assignees
Labels
No labels