fix oci pull meta bug

This commit is contained in:
obdev
2023-04-27 13:11:52 +00:00
committed by ob-robot
parent 6873db3200
commit ea5c70b38c
7 changed files with 12 additions and 9 deletions

View File

@ -84,8 +84,6 @@ void ObMySQLResult::format_precision_scale_length(int16_t &precision, int16_t &s
// format precision from others to oceanbase
if (ob_is_nstring(ob_type)) {
precision = LS_CHAR; // precision is LS_CHAR means national character set (unicode)
} else if (ob_is_varchar_or_char(ob_type, cs_type)) {
precision = LS_BYTE; // precision is LS_BYTE means ascii character set (non-unicode)
} else if (ObNumberFloatType == ob_type) {
precision = tmp_precision; //bit precision, not decimal precision
} else if (tmp_precision < OB_MIN_NUMBER_PRECISION || tmp_precision > OB_MAX_NUMBER_PRECISION) {