SQL audit displays the original SQL of the PS statement execution.

This commit is contained in:
GongYusen
2024-09-27 01:16:33 +00:00
committed by ob-robot
parent 3f091024b3
commit 58c47ea12e
3 changed files with 4 additions and 2 deletions

View File

@ -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));