Fix decimal int related bugs

This commit is contained in:
hezuojiao
2023-12-13 17:13:07 +00:00
committed by ob-robot
parent 3b900eb9a9
commit 34fcb40838
3 changed files with 9 additions and 3 deletions

View File

@ -101,7 +101,7 @@ int ObExprGetSysVar::calc_result_type2(ObExprResType &type,
OX(type.set_collation_type(conn_coll));
}
}
} else if (ob_is_int_tc(data_type)) {
} else if (ob_is_int_uint_tc(data_type)) {
type.set_accuracy(ObAccuracy::MAX_ACCURACY2[lib::is_oracle_mode()][data_type]);
}
}