[BUGFIX] fix lob bugs

This commit is contained in:
obdev
2023-03-10 04:11:15 +00:00
committed by ob-robot
parent c9177f7439
commit b7aa3212ab
4 changed files with 19 additions and 8 deletions

View File

@ -1626,7 +1626,7 @@ static int common_copy_string_zf_to_text_result(const ObExpr &expr,
} else {
int64_t zf_len = out_len - src.length();
if (0 < zf_len) {
if (OB_FAIL(str_result.fill(0, 0, zf_len))) {
if (OB_FAIL(str_result.fill(0, '0', zf_len))) {
} else if (OB_FAIL(str_result.lseek(zf_len, 0))) {
} else { /* do nothing */ };
}