[CP] Compatible with oracle error code for cast illegal type data to number
This commit is contained in:
2
deps/oblib/src/lib/number/ob_number_v2.h
vendored
2
deps/oblib/src/lib/number/ob_number_v2.h
vendored
@ -2230,7 +2230,7 @@ inline int ObNumber::decode(const char *buf, const int64_t buf_size, int64_t &po
|
||||
const int64_t copy_size = d_.len_ * static_cast<int64_t>(sizeof(uint32_t));
|
||||
if (OB_UNLIKELY(buf_size - pos < copy_size)) {
|
||||
ret = OB_BUF_NOT_ENOUGH;
|
||||
LIB_LOG(ERROR, "buff is not enough", K(copy_size), K(buf_size - pos), K(buf_size), K(pos), K(ret));
|
||||
LIB_LOG(WARN, "buff is not enough", K(copy_size), K(buf_size - pos), K(buf_size), K(pos), K(ret));
|
||||
} else {
|
||||
digits_ = (uint32_t *)(buf + pos);
|
||||
pos += copy_size;
|
||||
|
Reference in New Issue
Block a user