Fix failed mysql tests

This commit is contained in:
hezuojiao
2023-03-17 03:41:07 +00:00
committed by ob-robot
parent 105bf1c2f4
commit 5510d6c791

View File

@ -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;