Fix div expr precision deducing is not idempotent

This commit is contained in:
hezuojiao
2024-03-13 08:12:22 +00:00
committed by ob-robot
parent 17f7a2f819
commit a88b712c55
4 changed files with 116 additions and 0 deletions

View File

@ -3058,6 +3058,7 @@ const char *ObNumber::format() const
if (OB_ISNULL(buffers)) {
buffer = nullptr;
} else if(OB_UNLIKELY(OB_SUCCESS != format(buffer, BUFFER_SIZE, length, -1))) {
buffer = nullptr;
LOG_ERROR_RET(OB_ERROR, "fail to format buffer");
} else {
buffer[length] = '\0';