[to #58360299]Fix the 32x case migration issue, package var adapts to decimalint type.

This commit is contained in:
swjtu-wenxiang
2024-07-24 08:46:05 +00:00
committed by ob-robot
parent 762a7cda75
commit b0126f2a2d
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,8 @@ int ObExprGetPackageVar::calc_result_typeN(ObExprResType &type,
type.set_collation_type(result_type->get_collation_type());
type.set_collation_level(result_type->get_collation_level());
} else if (ob_is_number_tc(result_type->get_type()) ||
ob_is_interval_tc(result_type->get_type())) {
ob_is_interval_tc(result_type->get_type()) ||
ob_is_decimal_int_tc(result_type->get_type())) {
type.set_precision(result_type->get_precision());
type.set_scale(result_type->get_scale());
} else if (ob_is_text_tc(result_type->get_type())