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

Function non_zero_date

sql/sql_time.h:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 return ltime->year || ltime->month || ltime->day;
139}
140static inline bool
141non_zero_date(const MYSQL_TIME *ltime)
142{
143 return non_zero_YYMMDD(ltime) ||
144 (ltime->time_type == MYSQL_TIMESTAMP_DATETIME &&
145 non_zero_hhmmssuu(ltime));
146}
147static inline bool
148check_date(const MYSQL_TIME *ltime, date_conv_mode_t flags, int *was_cut)
149{

Calls 2

non_zero_YYMMDDFunction · 0.85
non_zero_hhmmssuuFunction · 0.85

Tested by

no test coverage detected