fix mysqltest

This commit is contained in:
obdev
2023-01-29 16:41:26 +08:00
committed by ob-robot
parent f66c6b5ece
commit a185139b90
3 changed files with 20 additions and 10 deletions

View File

@ -45,5 +45,22 @@ int ObLogLinkDml::get_explain_name_internal(char *buf, const int64_t buf_len, in
return ret;
}
int ObLogLinkDml::get_plan_item_info(PlanText &plan_text,
ObSqlPlanItem &plan_item)
{
int ret = OB_SUCCESS;
if (OB_FAIL(ObLogicalOperator::get_plan_item_info(plan_text, plan_item))) {
LOG_WARN("failed to get plan item info", K(ret));
} else {
BEGIN_BUF_PRINT;
if (OB_FAIL(get_explain_name_internal(buf, buf_len, pos))) {
LOG_WARN("failed to get explain name", K(ret));
}
END_BUF_PRINT(plan_item.operation_, plan_item.operation_len_);
}
return ret;
}
} // namespace sql
} // namespace oceanbase

View File

@ -16,6 +16,7 @@ public:
virtual ~ObLogLinkDml() {}
virtual int compute_op_ordering() override;
virtual int get_explain_name_internal(char *buf, const int64_t buf_len, int64_t &pos) override;
virtual int get_plan_item_info(PlanText &plan_text, ObSqlPlanItem &plan_item) override;
inline void set_dml_type(stmt::StmtType type) { dml_type_ = type; }
private:
stmt::StmtType dml_type_;