Address the issue of improper comparison due to mismatched data types on both sides of the IN expression.
This commit is contained in:
@ -106,7 +106,8 @@ int ObExprCase::calc_result_typeN(ObExprResType &type,
|
||||
types_stack[i].set_calc_meta(types_stack[i].get_obj_meta());
|
||||
} else {
|
||||
types_stack[i].set_calc_meta(type.get_obj_meta());
|
||||
if (ObDecimalIntType == type.get_obj_meta().get_type()) {
|
||||
if (ObDecimalIntType == type.get_obj_meta().get_type() ||
|
||||
ob_is_double_type(type.get_obj_meta().get_type())) {
|
||||
types_stack[i].set_calc_accuracy(type.get_accuracy());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user