| 2267 | |
| 2268 | |
| 2269 | static void log_current_query(MYSQL_THD thd) |
| 2270 | { |
| 2271 | struct connection_info *cn; |
| 2272 | if (!thd) |
| 2273 | return; |
| 2274 | cn= get_loc_info(thd); |
| 2275 | if (!ci_needs_setup(cn) && cn->query_length) |
| 2276 | { |
| 2277 | cn->log_always= 1; |
| 2278 | log_statement_ex(cn, cn->query_time, thd_get_thread_id(thd), |
| 2279 | thd_sql_command(thd), cn->query, cn->query_length, 0, |
| 2280 | "QUERY", 0); |
| 2281 | cn->log_always= 0; |
| 2282 | } |
| 2283 | } |
| 2284 | |
| 2285 | |
| 2286 | static void update_file_path(MYSQL_THD thd, st_mysql_sys_var *, void *, |
no test coverage detected