@@ -135,7 +135,7 @@ void mysql_audit_general_log(THD *thd, const char *cmd, uint cmdlen,
135135 error_code , time , user , userlen , cmd , cmdlen , query .str ,
136136 query .length , clientcs , resultrows , affectrows ,
137137 sql_command , host , external_user , ip , database ,
138- databaselen , queryattr , queryattrlen );
138+ databaselen , queryattr , queryattrlen , mysqld_port );
139139 }
140140#endif
141141}
@@ -223,7 +223,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
223223 query .str (), query .length (), query .charset (),
224224 resultrows , affectrows , sql_command , host ,
225225 external_user , ip , database , databaselen ,
226- queryattr , queryattrlen );
226+ queryattr , queryattrlen , mysqld_port );
227227 }
228228#endif
229229}
@@ -243,7 +243,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
243243 (thd)->security_ctx->get_ip()->length(),\
244244 (thd)->db, (thd)->db ? strlen((thd)->db) : 0,\
245245 (thd)->connection_certificate(),\
246- (thd)->connection_certificate_length());
246+ (thd)->connection_certificate_length(), mysqld_port );
247247
248248
249249#define MYSQL_AUDIT_NOTIFY_CONNECTION_DISCONNECT (thd , errcode )\
@@ -262,7 +262,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
262262 (thd)->security_ctx->get_ip()->length(),\
263263 (thd)->db, (thd)->db ? strlen((thd)->db) : 0,\
264264 (thd)->connection_certificate(),\
265- (thd)->connection_certificate_length());
265+ (thd)->connection_certificate_length(), mysqld_port );
266266
267267#define MYSQL_AUDIT_NOTIFY_CONNECTION_CHANGE_USER (thd ) mysql_audit_notify(\
268268 (thd), MYSQL_AUDIT_CONNECTION_CLASS, MYSQL_AUDIT_CONNECTION_CHANGE_USER,\
@@ -279,6 +279,6 @@ void mysql_audit_general(THD *thd, uint event_subtype,
279279 (thd)->security_ctx->get_ip()->length(),\
280280 (thd)->db, (thd)->db ? strlen((thd)->db) : 0,\
281281 (thd)->connection_certificate(),\
282- (thd)->connection_certificate_length());
282+ (thd)->connection_certificate_length(), mysqld_port );
283283
284284#endif /* SQL_AUDIT_INCLUDED */
0 commit comments