| 2341 | |
| 2342 | |
| 2343 | static int check_timestamp_format(MYSQL_THD thd, st_mysql_sys_var *, |
| 2344 | void *save, struct st_mysql_value *value) |
| 2345 | { |
| 2346 | const char *format; |
| 2347 | int len= 0; |
| 2348 | |
| 2349 | format= value->val_str(value, NULL, &len); |
| 2350 | if ((size_t) len >= TIMESTAMP_FORMAT_LENGTH) |
| 2351 | { |
| 2352 | error_header(); |
| 2353 | fprintf(stderr, "server_audit_timestamp_format can't exceed %d characters.\n", |
| 2354 | TIMESTAMP_FORMAT_LENGTH - 1); |
| 2355 | return 1; |
| 2356 | } |
| 2357 | *((const char **) save)= format; |
| 2358 | return 0; |
| 2359 | } |
| 2360 | |
| 2361 | |
| 2362 | static void update_timestamp_format(MYSQL_THD thd, st_mysql_sys_var *, void *, |
nothing calls this directly
no test coverage detected