MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / set_zero_time

Function set_zero_time

sql-common/my_time.c:67–72  ·  view source on GitHub ↗

Set MYSQL_TIME structure to 0000-00-00 00:00:00.000000 @param tm[OUT] The value to set. @param time_type Timestasmp type */

Source from the content-addressed store, hash-verified

65 @param time_type Timestasmp type
66*/
67inline void set_zero_time(MYSQL_TIME *tm,
68 enum enum_mysql_timestamp_type time_type)
69{
70 memset(tm, 0, sizeof(*tm));
71 tm->time_type= time_type;
72}
73
74
75/**

Callers 11

set_max_timeFunction · 0.85
str_to_datetimeFunction · 0.85
number_to_timeFunction · 0.85
lldiv_t_to_datetimeFunction · 0.85
sec_to_timeFunction · 0.85
set_timeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected