fix print param sanity core

This commit is contained in:
obdev
2023-02-24 15:51:52 +00:00
committed by ob-robot
parent f0b05ed93c
commit 925c98fcc4
2 changed files with 5 additions and 2 deletions

View File

@ -399,7 +399,6 @@ template <>
ret = OB_SIZE_OVERFLOW;\
} else {\
buffer[pos++] = (IS_DOUBLE ? 'D' : 'F');\
buffer[pos] = '\0';\
}\
}\
}\

View File

@ -269,7 +269,11 @@ int ObLinkOp::combine_link_stmt(const ObString &link_stmt_fmt,
K(stmt_fmt_pos), K(stmt_fmt_next_param_pos));
}
}
if (OB_SUCC(ret)) {
if (OB_FAIL(ret)) {
// do nothing
} else if (link_stmt_pos >= stmt_buf_len_ && OB_FAIL(extend_stmt_buf(link_stmt_pos + 1))) {
LOG_WARN("failed to extend stmt buf", K(ret), K(link_stmt_pos), K(stmt_buf_len_));
} else {
stmt_buf_[link_stmt_pos++] = 0;
LOG_DEBUG("succ to combine link sql", K(stmt_buf_), K(link_stmt_pos));
if (DBLINK_DRV_OB == link_type_) {