Fix mysql tests
This commit is contained in:
@ -129,6 +129,10 @@ int ObExprTruncate::calc_result_type2(ObExprResType &type,
|
|||||||
precision = 1;
|
precision = 1;
|
||||||
}
|
}
|
||||||
type.set_precision(precision);
|
type.set_precision(precision);
|
||||||
|
if (lib::is_mysql_mode() && ob_is_double_tc(type.get_type())) {
|
||||||
|
type.set_precision(PRECISION_UNKNOWN_YET);
|
||||||
|
type.set_scale(SCALE_UNKNOWN_YET);
|
||||||
|
}
|
||||||
} else { /* do nothing */}
|
} else { /* do nothing */}
|
||||||
} else if (ret == OB_ERR_TRUNCATED_WRONG_VALUE_FOR_FIELD ||
|
} else if (ret == OB_ERR_TRUNCATED_WRONG_VALUE_FOR_FIELD ||
|
||||||
ret == OB_ERR_DATA_TRUNCATED){
|
ret == OB_ERR_DATA_TRUNCATED){
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user