fix calc least expr bug

This commit is contained in:
sdc
2023-05-30 12:41:50 +00:00
committed by ob-robot
parent 399955b9a7
commit 65046e8219

View File

@ -4903,6 +4903,7 @@ int ObMinMaxExprOperator::calc_result_meta_for_comparison(
max_length = MAX(max_length, types_stack[i].get_length());
}
type.set_length(static_cast<ObLength>(max_length));
type.set_scale(SCALE_UNKNOWN_YET);
} else {
int64_t max_scale = 0;
int64_t max_precision = 0;