提交 b4aeaec0 编写于 作者: Y yinyj17 提交者: ob-robot

[CP] fix query string is too long to display

上级 04a4317f
......@@ -256,7 +256,11 @@ bool ObShowProcesslist::FillScanner::operator()(sql::ObSQLSessionMgr::Key key, O
if(true == sess_info->get_use_pl_inner_info_string()) {
cur_row_->cells_[cell_idx].set_varchar(pl_info_string_);
} else {
cur_row_->cells_[cell_idx].set_varchar(sess_info->get_current_query_string());
ObString query_string = sess_info->get_current_query_string();
if (query_string.length() > ObBasicSessionInfo::MAX_QUERY_STRING_LEN) {
query_string.clip(query_string.ptr() + ObBasicSessionInfo::MAX_QUERY_STRING_LEN);
}
cur_row_->cells_[cell_idx].set_varchar(query_string);
}
cur_row_->cells_[cell_idx].set_collation_type(default_collation);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册