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

@ -49,11 +49,6 @@ int ObExprJsonContains::calc_result_typeN(ObExprResType& type,
type.set_precision(DEFAULT_PRECISION_FOR_BOOL);
type.set_scale(ObAccuracy::DDL_DEFAULT_ACCURACY[ObIntType].scale_);
if (ob_is_string_type(types_stack[1].get_type())) {
types_stack[1].set_calc_type(ObJsonType);
types_stack[1].set_calc_collation_type(CS_TYPE_UTF8MB4_BIN);
}
// set type for json_path
if (OB_SUCC(ret) && param_num == 3) {
if (OB_FAIL(ObJsonExprHelper::is_valid_for_path(types_stack, 2))) {