master placeholder sql audit stmt type

This commit is contained in:
yaojing624
2024-01-19 04:42:22 +00:00
committed by ob-robot
parent 24b7922ca3
commit 94b32039ba
9 changed files with 78 additions and 4 deletions

View File

@ -21,6 +21,7 @@
#include "observer/omt/ob_multi_tenant.h"
#include "observer/ob_server_struct.h"
#include "share/rc/ob_tenant_base.h"
#include "sql/resolver/ob_resolver_utils.h"
#include <algorithm> // std::sort
@ -1056,6 +1057,10 @@ int ObGvSqlAudit::fill_cells(obmysql::ObMySQLRequestRecord &record)
case NETWORK_WAIT_TIME: {
cells[cell_idx].set_null();
} break;
case STMT_TYPE: {
cells[cell_idx].set_null();
cells[cell_idx].set_default_collation_type();
} break;
default: {
ret = OB_ERR_UNEXPECTED;
SERVER_LOG(WARN, "invalid column id", K(ret), K(cell_idx), K(col_id));