Fix division calc type
This commit is contained in:
parent
9817cf7292
commit
1ca545fb47
@ -267,7 +267,7 @@ int ObExprResultTypeUtil::get_div_result_type(ObObjType &result_type,
|
||||
if (ob_is_decimal_int(result_type) && !can_use_decint_div) {
|
||||
result_ob1_type = ObNumberType;
|
||||
result_ob2_type = ObNumberType;
|
||||
} else if (can_use_decint_div) {
|
||||
} else if (can_use_decint_div && result_type == ObNumberType) {
|
||||
// use decimal int as calc type
|
||||
result_ob1_type = ObDecimalIntType;
|
||||
result_ob2_type = ObDecimalIntType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user