bugfix:
This commit is contained in:
@ -43,6 +43,7 @@ int ObExprJsonQuote::calc_result_type1(ObExprResType &type,
|
|||||||
type.set_type(ObLongTextType);
|
type.set_type(ObLongTextType);
|
||||||
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
|
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
|
||||||
type.set_collation_level(CS_LEVEL_IMPLICIT);
|
type.set_collation_level(CS_LEVEL_IMPLICIT);
|
||||||
|
type.set_length(OB_MAX_LONGTEXT_LENGTH);
|
||||||
|
|
||||||
if (type1.get_type() == ObNullType || type1.get_type() == ObDoubleType
|
if (type1.get_type() == ObNullType || type1.get_type() == ObDoubleType
|
||||||
|| type1.get_type() == ObIntType) {
|
|| type1.get_type() == ObIntType) {
|
||||||
|
|||||||
@ -43,6 +43,7 @@ int ObExprJsonUnquote::calc_result_type1(ObExprResType &type,
|
|||||||
type.set_type(ObLongTextType);
|
type.set_type(ObLongTextType);
|
||||||
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
|
type.set_collation_type(CS_TYPE_UTF8MB4_BIN);
|
||||||
type.set_collation_level(CS_LEVEL_IMPLICIT);
|
type.set_collation_level(CS_LEVEL_IMPLICIT);
|
||||||
|
type.set_length(OB_MAX_LONGTEXT_LENGTH);
|
||||||
|
|
||||||
if (type1.get_type() == ObNullType || type1.get_type() == ObDoubleType
|
if (type1.get_type() == ObNullType || type1.get_type() == ObDoubleType
|
||||||
|| type1.get_type() == ObIntType) {
|
|| type1.get_type() == ObIntType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user