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

Function adjust_time_range_with_warn

sql/item_timefunc.cc:66–77  ·  view source on GitHub ↗

Check and adjust a time value with a warning. @param ltime Time variable. @param decimals Precision. @retval True on error, false of success. */

Source from the content-addressed store, hash-verified

64 @retval True on error, false of success.
65*/
66static void
67adjust_time_range_with_warn(MYSQL_TIME *ltime, uint8 decimals)
68{
69 /* Fatally bad value should not come here */
70 if (check_time_range_quick(ltime))
71 {
72 int warning= 0;
73 make_truncated_value_warning(ErrConvString(ltime, decimals),
74 MYSQL_TIMESTAMP_TIME);
75 adjust_time_range(ltime, &warning);
76 }
77}
78
79
80/*

Callers

nothing calls this directly

Calls 4

check_time_range_quickFunction · 0.85
ErrConvStringClass · 0.85
adjust_time_rangeFunction · 0.85

Tested by

no test coverage detected