fix sql plan bug
This commit is contained in:
@ -1365,7 +1365,7 @@ int ObSqlPlan::get_operator_prefix(ObIArray<ObSqlPlanItem*> &sql_plan_infos,
|
|||||||
}
|
}
|
||||||
buf_len = plan_level * 25;
|
buf_len = plan_level * 25;
|
||||||
pos = 0;
|
pos = 0;
|
||||||
if (plan_level > 0) {
|
if (OB_SUCC(ret) && plan_level > 0) {
|
||||||
buf = static_cast<char*>(allocator_.alloc(buf_len));
|
buf = static_cast<char*>(allocator_.alloc(buf_len));
|
||||||
if (OB_ISNULL(buf)) {
|
if (OB_ISNULL(buf)) {
|
||||||
ret = OB_ERR_UNEXPECTED;
|
ret = OB_ERR_UNEXPECTED;
|
||||||
@ -1404,8 +1404,12 @@ int ObSqlPlan::get_operator_prefix(ObIArray<ObSqlPlanItem*> &sql_plan_infos,
|
|||||||
ret = BUF_PRINTF(" ");
|
ret = BUF_PRINTF(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (OB_SUCC(ret)) {
|
||||||
ObString prefix(pos, buf);
|
ObString prefix(pos, buf);
|
||||||
format_helper.operator_prefix_.push_back(prefix);
|
if (OB_FAIL(format_helper.operator_prefix_.push_back(prefix))) {
|
||||||
|
LOG_WARN("failed to push back prefix", K(ret));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user