Fix like '\' bug

This commit is contained in:
2149
2023-10-20 03:13:25 +00:00
committed by ob-robot
parent 5528cd45b6
commit 4ebc347f35
2 changed files with 6 additions and 2 deletions

View File

@ -4312,7 +4312,8 @@ int ObPreCalcExprConstraint::check_is_match(const ObObjParam &obj_param, bool &i
is_match = false;
} else if (!pattern_val.empty()) {
is_match = OB_ISNULL(pattern_val.find('%')) &&
OB_ISNULL(pattern_val.find('_'));
OB_ISNULL(pattern_val.find('_')) &&
OB_ISNULL(pattern_val.find('\\'));
} else {
is_match = true;
}