[CP] Fix: user cannot be null

This commit is contained in:
yaojing624
2023-12-13 06:42:40 +00:00
committed by ob-robot
parent 699cecf3d2
commit 5fe3387d41
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);