提交 f335d5a1 编写于 作者: B bx0 提交者: wangzelin.wzl

Fix the legacy of garbled code about sql_id in sql_audit [open source]

上级 4a67d3f3
......@@ -245,6 +245,7 @@ ObSqlCtx::ObSqlCtx()
can_reroute_sql_(false),
reroute_info_()
{
sql_id_[0] = '\0';
sql_id_[common::OB_MAX_SQL_ID_LENGTH] = '\0';
}
......@@ -267,6 +268,7 @@ void ObSqlCtx::reset()
force_print_trace_ = false;
is_show_trace_stmt_ = false;
retry_times_ = OB_INVALID_COUNT;
sql_id_[0] = '\0';
sql_id_[common::OB_MAX_SQL_ID_LENGTH] = '\0';
exec_type_ = InvalidType;
is_prepare_protocol_ = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册