Problem with the following code when bind variable is NULL:
<bind name="recipientName" value="'%'+recipientName+'%'"/>
How to handle Like operator in MyBatis when a bind variable is null?
Problem with the following code when bind variable is NULL:
<bind name="recipientName" value="'%'+recipientName+'%'"/>
How to handle Like operator in MyBatis when a bind variable is null?
<if test = "recipientName != null">
<bind name="recipientName" value="'%'+recipientName+'%'"/>
</if> resolved the issue.