Fix failed mysqltests caused by fix from dual fetch and regexp bugs

This commit is contained in:
obdev
2023-04-18 06:41:36 +00:00
committed by ob-robot
parent 0a0ba897c9
commit acb7f537d6

View File

@ -106,7 +106,7 @@ public:
static int check_need_utf8(ObRawExpr *expr, bool &is_nstring); static int check_need_utf8(ObRawExpr *expr, bool &is_nstring);
static inline bool is_binary_string(const ObExprResType &type) { static inline bool is_binary_string(const ObExprResType &type) {
return CS_TYPE_BINARY == type.get_collation_type() && ob_is_string_tc(type.get_type()); return CS_TYPE_BINARY == type.get_collation_type() && (ObVarcharType == type.get_type() || ObHexStringType == type.get_type());
} }
static inline bool is_binary_compatible(const ObExprResType &type) { static inline bool is_binary_compatible(const ObExprResType &type) {