[CP] JSON bug fix

This commit is contained in:
obdev
2022-07-20 11:33:11 +08:00
committed by wangzelin.wzl
parent 1b88c27061
commit b96d7663b5
6 changed files with 18 additions and 11 deletions

View File

@ -2215,7 +2215,8 @@ static int common_string_json(const ObExpr &expr,
if (is_need_charset_convert == false) {
j_text.assign_ptr(in_str.ptr(), in_str.length());
}
bool is_enumset_to_str = (expr.args_[0]->type_ == T_FUN_SET_TO_STR);
bool is_enumset_to_str = ((expr.args_[0]->type_ == T_FUN_SET_TO_STR)
|| (expr.args_[0]->type_ == T_FUN_ENUM_TO_STR));
ObIJsonBase *j_base = NULL;
ObJsonOpaque j_opaque(j_text, in_type);
ObJsonString j_string(j_text.ptr(), j_text.length());