[CP] Compatible with oracle error code for cast illegal type data to number

This commit is contained in:
hwx65
2024-04-03 11:31:27 +00:00
committed by ob-robot
parent 02281e1d23
commit 5959abd866

View File

@ -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;