This commit is contained in:
obdev 2022-09-12 03:02:22 +00:00 committed by wangzelin.wzl
parent ff8b723642
commit 4e8d8231d3
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ int ObExprJsonQuote::calc_result_type1(ObExprResType &type,
type.set_type(ObLongTextType);
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
type.set_collation_level(CS_LEVEL_IMPLICIT);
type.set_length(OB_MAX_LONGTEXT_LENGTH);
if (type1.get_type() == ObNullType || type1.get_type() == ObDoubleType
|| type1.get_type() == ObIntType) {

View File

@ -43,7 +43,8 @@ int ObExprJsonUnquote::calc_result_type1(ObExprResType &type,
type.set_type(ObLongTextType);
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
type.set_collation_level(CS_LEVEL_IMPLICIT);
type.set_length(OB_MAX_LONGTEXT_LENGTH);
if (type1.get_type() == ObNullType || type1.get_type() == ObDoubleType
|| type1.get_type() == ObIntType) {
// do nothing