[CP] [to #52990298]add is_packed for ps cursor

This commit is contained in:
LiuYoung00
2023-11-06 10:39:17 +00:00
committed by ob-robot
parent cc061ae777
commit 001eedfcf6
7 changed files with 40 additions and 18 deletions

View File

@ -462,9 +462,9 @@ int ObMPStmtFetch::response_result(pl::ObPLCursorInfo &cursor,
if (OB_SUCC(ret) && !need_fetch && NULL != row) {
if (has_long_data()) {
OZ (response_row(session, *(const_cast<common::ObNewRow*>(row)),
fields, column_flag_, cursor_id_, true));
fields, column_flag_, cursor_id_, true, cursor.is_packed()));
} else {
OZ (response_row(session, *(const_cast<common::ObNewRow*>(row)), fields));
OZ (response_row(session, *(const_cast<common::ObNewRow*>(row)), fields, cursor.is_packed()));
}
if (OB_FAIL(ret)) {
LOG_WARN("response row fail.", K(ret));
@ -489,9 +489,9 @@ int ObMPStmtFetch::response_result(pl::ObPLCursorInfo &cursor,
cursor.set_current_position(cur);
if (has_long_data()) {
OZ (response_row(session, row, fields, column_flag_, cursor_id_,
0 == row_num ? true : false));
0 == row_num ? true : false, cursor.is_packed()));
} else {
OZ (response_row(session, row, fields));
OZ (response_row(session, row, fields, cursor.is_packed()));
}
if (OB_SUCC(ret)) {
++row_num;
@ -776,7 +776,8 @@ int ObMPStmtFetch::response_row(ObSQLSessionInfo &session,
const ColumnsFieldArray *fields,
char *column_map,
int32_t stmt_id,
bool first_time)
bool first_time,
bool is_packed)
{
int ret = OB_SUCCESS;
common::ObNewRow row;
@ -874,7 +875,7 @@ int ObMPStmtFetch::response_row(ObSQLSessionInfo &session,
if (OB_FAIL(ret)) {
// do nothing
} else if (OB_FAIL(response_row(session, row, fields))) {
} else if (OB_FAIL(response_row(session, row, fields, is_packed))) {
LOG_WARN("response row fail.", K(ret), K(stmt_id));
} else {
LOG_DEBUG("response row success.", K(stmt_id));