[CP] fix regexp binary match bug

This commit is contained in:
wangt1xiuyi
2024-05-24 04:27:06 +00:00
committed by ob-robot
parent 824f103958
commit a9c2c92acb
3 changed files with 10 additions and 1 deletions

View File

@ -849,7 +849,9 @@ int ObExprRegexContext::check_need_utf8(ObRawExpr *expr, bool &need_utf8)
} else {
need_utf8 = real_expr->get_result_type().is_nchar() ||
real_expr->get_result_type().is_nvarchar2() ||
real_expr->get_result_type().is_blob();
real_expr->get_result_type().is_blob() ||
real_expr->get_result_type().is_binary() ||
real_expr->get_result_type().is_varbinary();
}
return ret;
}