[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

@ -574,7 +574,8 @@ int ObExprCast::calc_result2(ObObj& result, const ObObj& obj1, const ObObj& obj2
if (OB_SUCC(ret)) {
if (is_bool) {
ret = ObObjCaster::bool_to_json(dest_type, cast_ctx, obj1_round, buf_obj1, res_obj);
} else if (OB_UNLIKELY(item_type_obj1 == T_FUN_SET_TO_STR)) {
} else if (OB_UNLIKELY(item_type_obj1 == T_FUN_SET_TO_STR)
|| OB_UNLIKELY(item_type_obj1 == T_FUN_ENUM_TO_STR)) {
ret = ObObjCaster::enumset_to_json(dest_type, cast_ctx, obj1_round, buf_obj1, res_obj);
} else {
ret = ObObjCaster::to_type(dest_type, cast_ctx, obj1_round, buf_obj1, res_obj);