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

Function check_time_mmssff_range

sql-common/my_time.c:155–159  ·  view source on GitHub ↗

Check if TIME fields are fatally bad and cannot be further adjusted. @param ltime Time value. @retval TRUE if the value is fatally bad. @retval FALSE if the value is Ok. */

Source from the content-addressed store, hash-verified

153 @retval FALSE if the value is Ok.
154*/
155inline my_bool check_time_mmssff_range(const MYSQL_TIME *ltime)
156{
157 return ltime->minute >= 60 || ltime->second >= 60 ||
158 ltime->second_part > 999999;
159}
160
161
162/**

Callers 4

check_time_range_quickFunction · 0.85
str_to_timeFunction · 0.85
adjust_time_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected