SQL audit displays the original SQL of the PS statement execution.
This commit is contained in:
@ -2388,6 +2388,7 @@ int ObSql::handle_ps_execute(const ObPsStmtId client_stmt_id,
|
||||
} else {
|
||||
const ObString &sql = !ps_info->get_no_param_sql().empty() ? ps_info->get_no_param_sql() : ps_info->get_ps_sql();
|
||||
context.cur_sql_ = sql;
|
||||
context.raw_sql_ = ps_info->get_ps_sql();
|
||||
#ifndef NDEBUG
|
||||
LOG_INFO("Begin to handle execute statement", "sess_id", session.get_sessid(),
|
||||
"proxy_sess_id", session.get_proxy_sessid(), K(sql));
|
||||
|
||||
Reference in New Issue
Block a user