Skip to content

message error may confused #74

@zhiyu-he

Description

@zhiyu-he

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions