fix mysqltest case

This commit is contained in:
cqliang1995 2023-05-11 13:20:39 +00:00 committed by ob-robot
parent 14a742ce0f
commit d5854e43fc
2 changed files with 2 additions and 4 deletions

View File

@ -144,7 +144,8 @@ int ObMySQLResult::format_precision_scale_length(int16_t &precision, int16_t &sc
scale = OB_MIN_NUMBER_SCALE - 1; // binary_float and binar_double scale from oci is 0, need set to -85
} else if (DBLINK_DRV_OCI == link_type && ObDateTimeType == ob_type) {
scale = 0;
} else if (tmp_scale < OB_MIN_NUMBER_SCALE || tmp_scale > OB_MAX_NUMBER_SCALE) {
} else if (tmp_scale < OB_MIN_NUMBER_SCALE || tmp_scale > OB_MAX_NUMBER_SCALE ||
(-1 == precision && ObNumberType == ob_type)) {
scale = OB_MIN_NUMBER_SCALE - 1; // format it to -85 if scale out of range
} else {
scale = tmp_scale; // for a valid scale, just set it

View File

@ -690,9 +690,6 @@ int ObStaticEngineCG::check_vectorize_supported(bool &support,
support = false;
stop_checking = true;
}
if (log_op_def::LOG_LINK_SCAN == op->get_type()) {
stop_checking = true;
}
LOG_DEBUG("check_vectorie_supported", K(disable_vectorize), K(support), K(stop_checking),
K(op->get_num_of_child()));
// continue searching until found an operator with vectorization explicitly disabled