fix:some multivalue query bugs

This commit is contained in:
obdev
2024-04-30 08:17:51 +00:00
committed by ob-robot
parent 8300c293a7
commit 084bf7584f
10 changed files with 72 additions and 38 deletions

View File

@ -39,20 +39,11 @@ int ObExprJsonOverlaps::calc_result_type2(ObExprResType &type,
{
UNUSED(type_ctx);
int ret = OB_SUCCESS;
bool is_strict = false;
type.set_int32();
type.set_precision(DEFAULT_PRECISION_FOR_BOOL);
type.set_scale(ObAccuracy::DDL_DEFAULT_ACCURACY[ObIntType].scale_);
if (ob_is_string_type(type1.get_type()) && type1.get_collation_type() != CS_TYPE_BINARY) {
type1.set_calc_type(ObJsonType);
type1.set_calc_collation_type(CS_TYPE_UTF8MB4_BIN);
}
if (ob_is_string_type(type2.get_type()) && type2.get_collation_type() != CS_TYPE_BINARY) {
type2.set_calc_type(ObJsonType);
type2.set_calc_collation_type(CS_TYPE_UTF8MB4_BIN);
}
return ret;
}