[CP] Fix type deduce in to_days expr for enum/set args
This commit is contained in:
parent
495abac47d
commit
382bd03a3a
@ -40,11 +40,7 @@ int ObExprToDays::calc_result_type1(ObExprResType &type,
|
||||
type.set_int();
|
||||
type.set_scale(common::ObAccuracy::DDL_DEFAULT_ACCURACY[common::ObIntType].scale_);
|
||||
type.set_precision(common::ObAccuracy::DDL_DEFAULT_ACCURACY[common::ObIntType].precision_);
|
||||
if (ob_is_enumset_tc(date.get_type())) {
|
||||
date.set_calc_type(ObVarcharType);
|
||||
} else {
|
||||
date.set_calc_type(ObDateType);
|
||||
}
|
||||
date.set_calc_type(ObDateType);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user