[CP] Fix: user cannot be null

This commit is contained in:
obdev 2024-02-07 18:25:36 +00:00 committed by ob-robot
parent 8d751062f6
commit a8cba4376b
2 changed files with 4 additions and 2 deletions

View File

@ -129,7 +129,8 @@ int ObAllVirtualSessionInfo::FillScanner::operator()(
// before we finally find the reason and resolve the bug. otherwise we cannot
// use this command in on-line cluster.
// see
cur_row_->cells_[cell_idx].set_null();
cur_row_->cells_[cell_idx].set_varchar("");
cur_row_->cells_[cell_idx].set_collation_type(default_collation);
} else {
cur_row_->cells_[cell_idx].set_varchar(sess_info->get_user_name());
cur_row_->cells_[cell_idx].set_collation_type(default_collation);

View File

@ -165,7 +165,8 @@ bool ObShowProcesslist::FillScanner::operator()(sql::ObSQLSessionMgr::Key key, O
// before we finally find the reason and resolve the bug. otherwise we cannot
// use this command in on-line cluster.
// see
cur_row_->cells_[cell_idx].set_null();
cur_row_->cells_[cell_idx].set_varchar("");
cur_row_->cells_[cell_idx].set_collation_type(default_collation);
} else {
cur_row_->cells_[cell_idx].set_varchar(sess_info->get_user_name());
cur_row_->cells_[cell_idx].set_collation_type(default_collation);