Fix mysql tests
This commit is contained in:
parent
b073c1693b
commit
c1cc38db65
@ -129,6 +129,10 @@ int ObExprTruncate::calc_result_type2(ObExprResType &type,
|
||||
precision = 1;
|
||||
}
|
||||
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 if (ret == OB_ERR_TRUNCATED_WRONG_VALUE_FOR_FIELD ||
|
||||
ret == OB_ERR_DATA_TRUNCATED){
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user