MCPcopy Create free account
hub / github.com/MariaDB/server / check_timestamp_format

Function check_timestamp_format

plugin/server_audit/server_audit.cc:2343–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2341
2342
2343static 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
2362static void update_timestamp_format(MYSQL_THD thd, st_mysql_sys_var *, void *,

Callers

nothing calls this directly

Calls 2

error_headerFunction · 0.85
val_strMethod · 0.45

Tested by

no test coverage detected