@@ -135,7 +135,7 @@ void mysql_audit_general_log(THD *thd, const char *cmd, uint cmdlen,
135
135
error_code , time , user , userlen , cmd , cmdlen , query .str ,
136
136
query .length , clientcs , resultrows , affectrows ,
137
137
sql_command , host , external_user , ip , database ,
138
- databaselen , queryattr , queryattrlen );
138
+ databaselen , queryattr , queryattrlen , mysqld_port );
139
139
}
140
140
#endif
141
141
}
@@ -223,7 +223,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
223
223
query .str (), query .length (), query .charset (),
224
224
resultrows , affectrows , sql_command , host ,
225
225
external_user , ip , database , databaselen ,
226
- queryattr , queryattrlen );
226
+ queryattr , queryattrlen , mysqld_port );
227
227
}
228
228
#endif
229
229
}
@@ -243,7 +243,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
243
243
(thd)->security_ctx->get_ip()->length(),\
244
244
(thd)->db, (thd)->db ? strlen((thd)->db) : 0,\
245
245
(thd)->connection_certificate(),\
246
- (thd)->connection_certificate_length());
246
+ (thd)->connection_certificate_length(), mysqld_port );
247
247
248
248
249
249
#define MYSQL_AUDIT_NOTIFY_CONNECTION_DISCONNECT (thd , errcode )\
@@ -262,7 +262,7 @@ void mysql_audit_general(THD *thd, uint event_subtype,
262
262
(thd)->security_ctx->get_ip()->length(),\
263
263
(thd)->db, (thd)->db ? strlen((thd)->db) : 0,\
264
264
(thd)->connection_certificate(),\
265
- (thd)->connection_certificate_length());
265
+ (thd)->connection_certificate_length(), mysqld_port );
266
266
267
267
#define MYSQL_AUDIT_NOTIFY_CONNECTION_CHANGE_USER (thd ) mysql_audit_notify(\
268
268
(thd), MYSQL_AUDIT_CONNECTION_CLASS, MYSQL_AUDIT_CONNECTION_CHANGE_USER,\
@@ -279,6 +279,6 @@ void mysql_audit_general(THD *thd, uint event_subtype,
279
279
(thd)->security_ctx->get_ip()->length(),\
280
280
(thd)->db, (thd)->db ? strlen((thd)->db) : 0,\
281
281
(thd)->connection_certificate(),\
282
- (thd)->connection_certificate_length());
282
+ (thd)->connection_certificate_length(), mysqld_port );
283
283
284
284
#endif /* SQL_AUDIT_INCLUDED */
0 commit comments