Fix failed mysql tests
This commit is contained in:
@ -5654,7 +5654,7 @@ int ret = OB_SUCCESS;
|
||||
}
|
||||
}
|
||||
} else if (ObFloatTC == child_tc || ObDoubleTC == child_tc) {
|
||||
if (child_tc == dst_tc || ObDoubleTC == dst_tc) {
|
||||
if (child_tc == dst_tc) {
|
||||
ObAccuracy lossless_acc = child_type.get_accuracy();
|
||||
if (dst_acc.get_precision() >= lossless_acc.get_precision() &&
|
||||
dst_acc.get_scale() == lossless_acc.get_scale()) {
|
||||
@ -5761,7 +5761,7 @@ int ObOptimizerUtil::is_lossless_column_cast(const ObRawExpr *expr, bool &is_los
|
||||
}
|
||||
}
|
||||
} else if (ObFloatTC == child_tc || ObDoubleTC == child_tc) {
|
||||
if (child_tc == dst_tc || ObDoubleTC == dst_tc) {
|
||||
if (child_tc == dst_tc) {
|
||||
ObAccuracy lossless_acc = child_type.get_accuracy();
|
||||
if (lossless_acc.get_scale() == dst_acc.get_scale()) {
|
||||
is_lossless = true;
|
||||
|
||||
Reference in New Issue
Block a user