dblink_write implement [FEAT MERGE]
Co-authored-by: zzg19950727 <1071026277@qq.com> Co-authored-by: xianyu-w <707512433@qq.com>
This commit is contained in:
@ -97,6 +97,8 @@ void ObMySQLResult::format_precision_scale_length(int16_t &precision, int16_t &s
|
||||
// format scale from others to oceanbase
|
||||
if (DBLINK_DRV_OCI == link_type && (ObFloatType == ob_type || ObDoubleType == ob_type)) {
|
||||
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) {
|
||||
scale = OB_MIN_NUMBER_SCALE - 1; // format it to -85 if scale out of range
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user