if (isAllCondition(pattern)) {
condition = "";
value = null;
} else if (hasNoWildcards(pattern)) {
value = stripEscape(pattern);
<BUG>condition = "CAST(" + columnName + " AS VARCHAR(40)) = ? and ";
</BUG>
} else {
value = pattern + SPACES_15 + "%";
condition = columnName + " || '" + SPACES_31 + "' like ? escape '\\' and ";

if (isAllCondition(pattern)) {
condition = "";
value = null;
} else if (hasNoWildcards(pattern)) {
value = stripEscape(pattern);
condition = "CAST(" + columnName + " AS VARCHAR(" + (OBJECT_NAME_LENGTH + 10) + ")) = ? and ";
} else {
value = pattern + SPACES_15 + "%";
condition = columnName + " || '" + SPACES_31 + "' like ? escape '\\' and ";
